From 5914c5b2209c4b8daac4249bb76cda5c9314c4e6 Mon Sep 17 00:00:00 2001 From: Jose Antonio Marquez Date: Thu, 24 May 2012 00:07:23 -0700 Subject: Cleaning up referencing to 'documentRoot' and '_document' Moved to reference new model in DOM architecture rework. This should not affect anything, just moving the references, and also the setting to the render methods in the design view. --- js/stage/tool-handle.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js/stage/tool-handle.js') diff --git a/js/stage/tool-handle.js b/js/stage/tool-handle.js index 63cf30e5..70289512 100755 --- a/js/stage/tool-handle.js +++ b/js/stage/tool-handle.js @@ -243,7 +243,7 @@ exports.RotateHandle = Montage.create(ToolHandle, { this._origin = pointOnElt; - var viewMat = viewUtils.getMatrixFromElement(this.application.ninja.currentDocument.documentRoot); + var viewMat = viewUtils.getMatrixFromElement(this.application.ninja.currentDocument.model.documentRoot); var transMat = viewMat.slice(0); if(inLocalMode) @@ -585,7 +585,7 @@ exports.TranslateHandle = Montage.create(ToolHandle, { this._origin = pointOnElt; - var stage = this.application.ninja.currentDocument.documentRoot; + var stage = this.application.ninja.currentDocument.model.documentRoot; var viewMat = viewUtils.getMatrixFromElement(stage); // Get viewMat without zoom value var zoom = this.application.ninja.documentBar.zoomFactor/100; -- cgit v1.2.3