diff --git a/src/item/Group.js b/src/item/Group.js index ca1954fd..937f2c0d 100644 --- a/src/item/Group.js +++ b/src/item/Group.js @@ -75,6 +75,8 @@ var Group = this.Group = Item.extend({ }, _changed: function(flags) { + // Don't use base() for reasons of performance. + Item.prototype._changed.call(this, flags); if (flags & (ChangeFlag.HIERARCHY | ChangeFlag.CLIPPING)) { // Clear cached clip item whenever hierarchy changes delete this._clipItem; diff --git a/src/path/Path.js b/src/path/Path.js index b36ab8d4..bcab8436 100644 --- a/src/path/Path.js +++ b/src/path/Path.js @@ -60,9 +60,9 @@ var Path = this.Path = PathItem.extend({ }, _changed: function(flags) { + // Don't use base() for reasons of performance. + Item.prototype._changed.call(this, flags); if (flags & ChangeFlag.GEOMETRY) { - delete this._bounds; - delete this._position; delete this._strokeBounds; delete this._length; // Clockwise state becomes undefined as soon as geometry changes.