From a1bec86333a06e736e68b7734187949853fca6f6 Mon Sep 17 00:00:00 2001 From: Jonathan Puckey Date: Sat, 19 Feb 2011 18:09:14 +0100 Subject: [PATCH] Have Layer extend Group. --- src/item/Layer.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/item/Layer.js b/src/item/Layer.js index ad218aeb..fadf9e58 100644 --- a/src/item/Layer.js +++ b/src/item/Layer.js @@ -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); - } } });