mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-09 14:22:08 -05:00
12 lines
206 B
JavaScript
12 lines
206 B
JavaScript
|
Layer = Item.extend({
|
||
|
initialize: function() {
|
||
|
this.base();
|
||
|
this.children = [];
|
||
|
},
|
||
|
|
||
|
draw: function() {
|
||
|
for(var i = 0, l = this.children.length; i < l; i++) {
|
||
|
this.children[i].draw();
|
||
|
}
|
||
|
}
|
||
|
});
|