diff --git a/src/core/display/DisplayObject.js b/src/core/display/DisplayObject.js index f072f43..54a4017 100644 --- a/src/core/display/DisplayObject.js +++ b/src/core/display/DisplayObject.js @@ -326,7 +326,7 @@ */ DisplayObject.prototype.updateTransform = function () { - this.transform = this.parent.transform.updateChildTransform(this.transform); + this.transform.updateTransform(this.parent.transform); // multiply the alphas.. this.worldAlpha = this.alpha * this.parent.worldAlpha; }; diff --git a/src/core/display/DisplayObject.js b/src/core/display/DisplayObject.js index f072f43..54a4017 100644 --- a/src/core/display/DisplayObject.js +++ b/src/core/display/DisplayObject.js @@ -326,7 +326,7 @@ */ DisplayObject.prototype.updateTransform = function () { - this.transform = this.parent.transform.updateChildTransform(this.transform); + this.transform.updateTransform(this.parent.transform); // multiply the alphas.. this.worldAlpha = this.alpha * this.parent.worldAlpha; }; diff --git a/src/core/display/Transform.js b/src/core/display/Transform.js index 7be09db..ee8bafb 100644 --- a/src/core/display/Transform.js +++ b/src/core/display/Transform.js @@ -110,13 +110,6 @@ this._worldID ++; }; -Transform.prototype.updateChildTransform = function (childTransform) -{ - childTransform.updateTransform(this); - return childTransform; -}; - - /** * Decomposes a matrix and sets the transforms properties based on it. * @param {Matrix} diff --git a/src/core/display/DisplayObject.js b/src/core/display/DisplayObject.js index f072f43..54a4017 100644 --- a/src/core/display/DisplayObject.js +++ b/src/core/display/DisplayObject.js @@ -326,7 +326,7 @@ */ DisplayObject.prototype.updateTransform = function () { - this.transform = this.parent.transform.updateChildTransform(this.transform); + this.transform.updateTransform(this.parent.transform); // multiply the alphas.. this.worldAlpha = this.alpha * this.parent.worldAlpha; }; diff --git a/src/core/display/Transform.js b/src/core/display/Transform.js index 7be09db..ee8bafb 100644 --- a/src/core/display/Transform.js +++ b/src/core/display/Transform.js @@ -110,13 +110,6 @@ this._worldID ++; }; -Transform.prototype.updateChildTransform = function (childTransform) -{ - childTransform.updateTransform(this); - return childTransform; -}; - - /** * Decomposes a matrix and sets the transforms properties based on it. * @param {Matrix} diff --git a/src/core/display/TransformStatic.js b/src/core/display/TransformStatic.js index 7b327a8..510b716 100644 --- a/src/core/display/TransformStatic.js +++ b/src/core/display/TransformStatic.js @@ -130,12 +130,6 @@ } }; -TransformStatic.prototype.updateChildTransform = function (childTransform) -{ - childTransform.updateTransform(this); - return childTransform; -}; - /** * Decomposes a matrix and sets the transforms properties based on it. * @param {Matrix}