diff --git a/src/core/display/DisplayObject.js b/src/core/display/DisplayObject.js index 0938890..ff4fda1 100644 --- a/src/core/display/DisplayObject.js +++ b/src/core/display/DisplayObject.js @@ -509,6 +509,5 @@ this._currentBounds = null; this._mask = null; - this.worldTransform = null; this.filterArea = null; }; diff --git a/src/core/display/DisplayObject.js b/src/core/display/DisplayObject.js index 0938890..ff4fda1 100644 --- a/src/core/display/DisplayObject.js +++ b/src/core/display/DisplayObject.js @@ -509,6 +509,5 @@ this._currentBounds = null; this._mask = null; - this.worldTransform = null; this.filterArea = null; }; diff --git a/test/unit/core/display/DisplayObject.test.js b/test/unit/core/display/DisplayObject.test.js index e2ee32d..5d8ccd8 100644 --- a/test/unit/core/display/DisplayObject.test.js +++ b/test/unit/core/display/DisplayObject.test.js @@ -8,4 +8,12 @@ expect(container.children.length).to.equal(1); expect(child.parent).to.equal(container); }); + + it('should be be able to destroy itself', function() { + + var child = new PIXI.DisplayObject(); + + child.destroy(); + + }); });