diff options
author | Jose Antonio Marquez | 2012-05-24 00:07:23 -0700 |
---|---|---|
committer | Jose Antonio Marquez | 2012-05-24 00:07:23 -0700 |
commit | 5914c5b2209c4b8daac4249bb76cda5c9314c4e6 (patch) | |
tree | f0910e57f64d1638f00bf7f6449d479fb377bfac /js/stage/layout.js | |
parent | 16decc5726eafbb25675c61be6df85a378ac1fac (diff) | |
download | ninja-5914c5b2209c4b8daac4249bb76cda5c9314c4e6.tar.gz |
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.
Diffstat (limited to 'js/stage/layout.js')
-rwxr-xr-x | js/stage/layout.js | 6 |
1 files changed, 3 insertions, 3 deletions
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, { | |||
62 | value: function() { | 62 | value: function() { |
63 | // Initial elements to draw are the childrens of the root element | 63 | // Initial elements to draw are the childrens of the root element |
64 | if(this.application.ninja.documentController.activeDocument.currentView === "design") { | 64 | if(this.application.ninja.documentController.activeDocument.currentView === "design") { |
65 | this.elementsToDraw = this.application.ninja.documentController.activeDocument.documentRoot.childNodes; | 65 | this.elementsToDraw = this.application.ninja.documentController.activeDocument.model.documentRoot.childNodes; |
66 | } | 66 | } |
67 | 67 | ||
68 | // Draw the elements and the 3d info | 68 | // Draw the elements and the 3d info |
@@ -241,7 +241,7 @@ exports.Layout = Montage.create(Component, { | |||
241 | value: function() { | 241 | value: function() { |
242 | if(this.application.ninja.currentDocument) { | 242 | if(this.application.ninja.currentDocument) { |
243 | this.clearCanvas(); | 243 | this.clearCanvas(); |
244 | this.WalkDOM(this.application.ninja.currentDocument.documentRoot); | 244 | this.WalkDOM(this.application.ninja.currentDocument.model.documentRoot); |
245 | 245 | ||
246 | //drawUtils.updatePlanes(); | 246 | //drawUtils.updatePlanes(); |
247 | //if(this.application.ninja.currentDocument.draw3DGrid) drawUtils.drawWorkingPlane(); | 247 | //if(this.application.ninja.currentDocument.draw3DGrid) drawUtils.drawWorkingPlane(); |
@@ -253,7 +253,7 @@ exports.Layout = Montage.create(Component, { | |||
253 | drawElementsOutline: { | 253 | drawElementsOutline: { |
254 | value: function(elements) { | 254 | value: function(elements) { |
255 | this.clearCanvas(); | 255 | this.clearCanvas(); |
256 | this.WalkDOM(this.application.ninja.currentDocument.documentRoot, elements); | 256 | this.WalkDOM(this.application.ninja.currentDocument.model.documentRoot, elements); |
257 | } | 257 | } |
258 | }, | 258 | }, |
259 | 259 | ||