mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -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,
|
beans: true,
|
||||||
|
|
||||||
initialize: function() {
|
initialize: function() {
|
||||||
|
@ -70,11 +70,5 @@ Layer = Item.extend({
|
||||||
|
|
||||||
activate: function() {
|
activate: function() {
|
||||||
this.document.activeLayer = this;
|
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