mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-28 17:02:24 -05:00
Layer.js: pass on ctx in draw function
This commit is contained in:
parent
d85217c40d
commit
62409a18d4
1 changed files with 2 additions and 2 deletions
|
@ -4,9 +4,9 @@ Layer = Item.extend({
|
|||
this.children = [];
|
||||
},
|
||||
|
||||
draw: function() {
|
||||
draw: function(ctx) {
|
||||
for(var i = 0, l = this.children.length; i < l; i++) {
|
||||
this.children[i].draw();
|
||||
this.children[i].draw(ctx);
|
||||
}
|
||||
}
|
||||
});
|
Loading…
Reference in a new issue