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/layout.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'js/stage/layout.js') diff --git a/js/stage/layout.js b/js/stage/layout.js index 9c5e2167..2ba39a87 100755 --- a/js/stage/layout.js +++ b/js/stage/layout.js @@ -62,7 +62,7 @@ exports.Layout = Montage.create(Component, { value: function() { // Initial elements to draw are the childrens of the root element if(this.application.ninja.documentController.activeDocument.currentView === "design") { - this.elementsToDraw = this.application.ninja.documentController.activeDocument.documentRoot.childNodes; + this.elementsToDraw = this.application.ninja.documentController.activeDocument.model.documentRoot.childNodes; } // Draw the elements and the 3d info @@ -241,7 +241,7 @@ exports.Layout = Montage.create(Component, { value: function() { if(this.application.ninja.currentDocument) { this.clearCanvas(); - this.WalkDOM(this.application.ninja.currentDocument.documentRoot); + this.WalkDOM(this.application.ninja.currentDocument.model.documentRoot); //drawUtils.updatePlanes(); //if(this.application.ninja.currentDocument.draw3DGrid) drawUtils.drawWorkingPlane(); @@ -253,7 +253,7 @@ exports.Layout = Montage.create(Component, { drawElementsOutline: { value: function(elements) { this.clearCanvas(); - this.WalkDOM(this.application.ninja.currentDocument.documentRoot, elements); + this.WalkDOM(this.application.ninja.currentDocument.model.documentRoot, elements); } }, -- cgit v1.2.3