Layer.js: pass on ctx in draw function

This commit is contained in:
Jonathan Puckey 2011-02-11 18:49:04 +01:00
parent d85217c40d
commit 62409a18d4

View file

@ -4,9 +4,9 @@ Layer = Item.extend({
this.children = []; this.children = [];
}, },
draw: function() { draw: function(ctx) {
for(var i = 0, l = this.children.length; i < l; i++) { for(var i = 0, l = this.children.length; i < l; i++) {
this.children[i].draw(); this.children[i].draw(ctx);
} }
} }
}); });