aboutsummaryrefslogtreecommitdiff
path: root/js/stage/layout.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/stage/layout.js')
-rwxr-xr-xjs/stage/layout.js6
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