Skip to content

Commit

Permalink
container load function
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanislas Polu committed Apr 17, 2012
1 parent 394628a commit 3730eb2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cell-0.2.min.js

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

17 changes: 15 additions & 2 deletions src/container.js
Expand Up @@ -51,7 +51,9 @@ CELL.container = function(spec, my) {
// public
var find; /* find(path); */

// private
// protected
var construct; /* construct(); */


var that = CELL.emitter({});

Expand All @@ -73,11 +75,22 @@ CELL.container = function(spec, my) {
return that;
};


/**
* Builds the cells hierarchies handled by that container and load
* them within the DOM
*/
load = function() {
// children class implementation specific
};



CELL.method(that, 'find', find, _super);
CELL.method(that, 'load', load, _super);

CELL.getter(that, 'children', my, 'children');
CELL.getter(that, 'name', my, 'name');

return that;

};

0 comments on commit 3730eb2

Please sign in to comment.