From 4314d30370485182249f68031d61a13d59cc5095 Mon Sep 17 00:00:00 2001 From: Andrea Bogazzi Date: Sun, 30 Nov 2014 18:38:43 +0100 Subject: [PATCH] Update group.class.js --- src/shapes/group.class.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/shapes/group.class.js b/src/shapes/group.class.js index e123b13b..f60d3777 100644 --- a/src/shapes/group.class.js +++ b/src/shapes/group.class.js @@ -69,9 +69,7 @@ this._calcBounds(); this._updateObjectsCoords(); - if (options) { - extend(this, options); - } + this.callSuper('initialize', options); this.setCoords(); this.saveCoords(); @@ -199,14 +197,11 @@ _set: function(key, value) { if (key in this.delegatedProperties) { var i = this._objects.length; - this[key] = value; while (i--) { this._objects[i].set(key, value); } } - else { - this[key] = value; - } + this.callSuper('_set', key, value); }, /**