diff options
Diffstat (limited to 'js/stage')
-rwxr-xr-x | js/stage/layout.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/stage/layout.js b/js/stage/layout.js index ab2daf9b..8a53a08b 100755 --- a/js/stage/layout.js +++ b/js/stage/layout.js | |||
@@ -65,7 +65,7 @@ exports.Layout = Montage.create(Component, { | |||
65 | handleOpenDocument: { | 65 | handleOpenDocument: { |
66 | value: function() { | 66 | value: function() { |
67 | // Initial elements to draw is the entire node list | 67 | // Initial elements to draw is the entire node list |
68 | if(typeof this.application.ninja.documentController.activeDocument._liveNodeList !== "undefined"){//only for designer view | 68 | if(this.application.ninja.documentController.activeDocument.currentView === "design"){//only for designer view |
69 | this.elementsToDraw = this.application.ninja.documentController.activeDocument._liveNodeList; | 69 | this.elementsToDraw = this.application.ninja.documentController.activeDocument._liveNodeList; |
70 | } | 70 | } |
71 | // Draw the elements and the 3d info | 71 | // Draw the elements and the 3d info |
@@ -105,7 +105,7 @@ exports.Layout = Montage.create(Component, { | |||
105 | } | 105 | } |
106 | 106 | ||
107 | // Make an array copy of the line node list which is not an array like object | 107 | // Make an array copy of the line node list which is not an array like object |
108 | if(typeof this.application.ninja.documentController.activeDocument._liveNodeList !== "undefined"){//only for designer view | 108 | if(this.application.ninja.documentController.activeDocument.currentView === "design"){//only for designer view |
109 | this.domTree = Array.prototype.slice.call(this.application.ninja.documentController.activeDocument._liveNodeList, 0); | 109 | this.domTree = Array.prototype.slice.call(this.application.ninja.documentController.activeDocument._liveNodeList, 0); |
110 | } | 110 | } |
111 | // Clear the elements to draw | 111 | // Clear the elements to draw |