paper.js/src/Layer.js

12 lines
206 B
JavaScript
Raw Normal View History

2011-02-11 12:37:36 -05:00
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();
}
}
});