Have Layer extend Group.

This commit is contained in:
Jonathan Puckey 2011-02-19 18:09:14 +01:00
parent 57b7b364bc
commit a1bec86333

View file

@ -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);
}
}
});