Skip to content

Commit

Permalink
fix brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony MOI committed Oct 1, 2012
1 parent 8361f34 commit f0a1a7a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/container.js
Expand Up @@ -119,8 +119,9 @@ CELL.container = function(spec, my) {

for(var c in my.children) {
if(my.children.hasOwnProperty(c)) {
if(typeof fn === 'string' && typeof my.children[c][fn] === 'function')
if(typeof fn === 'string' && typeof my.children[c][fn] === 'function') {
my.children[c][fn].apply(this, args);
}
else if(typeof fn === 'function') {
var child_args = [ my.children[c] ].concat(args);
fn.apply(this, child_args);
Expand Down

0 comments on commit f0a1a7a

Please sign in to comment.