Merge pull request #1868 from asturur/group-init

Use object's set and initializa methods in group
This commit is contained in:
Juriy Zaytsev 2014-11-30 19:19:54 +01:00
commit c814bd9727

View file

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