aboutsummaryrefslogtreecommitdiff
path: root/js/stage
diff options
context:
space:
mode:
authorAnanya Sen2012-03-07 14:26:37 -0800
committerAnanya Sen2012-03-07 14:26:37 -0800
commit250420d8c6154172b27fe53aff30e78c227e8a67 (patch)
treef4cad44f6145ad9f0fdba2667f04df166f9f1f37 /js/stage
parent8020dc6e99e3bf0aad605f66a175bc2245da534b (diff)
downloadninja-250420d8c6154172b27fe53aff30e78c227e8a67.tar.gz
minor fixes
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'js/stage')
-rwxr-xr-xjs/stage/layout.js4
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