mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 09:22:22 -05:00
Have Layer extend Group.
This commit is contained in:
parent
57b7b364bc
commit
a1bec86333
1 changed files with 1 additions and 7 deletions
|
@ -1,4 +1,4 @@
|
|||
Layer = Item.extend({
|
||||
Layer = Group.extend({
|
||||
beans: true,
|
||||
|
||||
initialize: function() {
|
||||
|
@ -70,11 +70,5 @@ Layer = Item.extend({
|
|||
|
||||
activate: function() {
|
||||
this.document.activeLayer = this;
|
||||
},
|
||||
|
||||
draw: function(ctx) {
|
||||
for (var i = 0, l = this.children.length; i < l; i++) {
|
||||
this.children[i].draw(ctx);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue