Skip to content

Commit

Permalink
moving helper methods
Browse files Browse the repository at this point in the history
  • Loading branch information
tracend committed Aug 4, 2013
1 parent 63464bb commit a248b86
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 23 deletions.
2 changes: 1 addition & 1 deletion build/construct-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 15 additions & 11 deletions build/construct.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@ construct = function( options, callback ){

};

construct.loop = [];

construct.init = function(){
// execute when construct is initialized
//console.log("init");
Expand All @@ -95,15 +93,6 @@ construct.init = function(){

};

// simple batch processor of all update events
construct.update = function( fn ){
// stack middleware


};

construct.promise = new Promise();


// stack middleware to be used
construct.register = function( fn ){
Expand All @@ -124,6 +113,21 @@ construct.configure = function( fn ){

};

/* Helper methods */
/* consider prefixing with _ ? */


construct.loop = [];

// simple batch processor of all update events
construct.update = function( fn ){
// stack middleware


};

construct.promise = new Promise();


// Dependencies
construct.config = {
Expand Down
11 changes: 0 additions & 11 deletions lib/construct.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ construct = function( options, callback ){

};

construct.loop = [];

construct.init = function(){
// execute when construct is initialized
//console.log("init");
Expand All @@ -36,12 +34,3 @@ construct.init = function(){
//return app;

};

// simple batch processor of all update events
construct.update = function( fn ){
// stack middleware


};

construct.promise = new Promise();
14 changes: 14 additions & 0 deletions lib/helpers.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/* Helper methods */
/* consider prefixing with _ ? */


construct.loop = [];

// simple batch processor of all update events
construct.update = function( fn ){
// stack middleware


};

construct.promise = new Promise();

0 comments on commit a248b86

Please sign in to comment.