aboutsummaryrefslogtreecommitdiff
path: root/js/stage
diff options
context:
space:
mode:
authorNivesh Rajbhandari2012-05-24 11:20:42 -0700
committerNivesh Rajbhandari2012-05-24 11:20:42 -0700
commit1adc3b050728e393583f94eb2216db813d4a7293 (patch)
treea3eacb511792ec5e199190b3d4f0c04d52deab28 /js/stage
parent209ec9524a987a8f8bc20c57e2a76ac55be15fd9 (diff)
downloadninja-1adc3b050728e393583f94eb2216db813d4a7293.tar.gz
Removed unused variables and methods in stage-deps, layout design, and snap-manager.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js/stage')
-rwxr-xr-xjs/stage/layout.js5
-rwxr-xr-xjs/stage/stage-deps.js2
2 files changed, 0 insertions, 7 deletions
diff --git a/js/stage/layout.js b/js/stage/layout.js
index 107e8abf..71959f86 100755
--- a/js/stage/layout.js
+++ b/js/stage/layout.js
@@ -64,10 +64,6 @@ exports.Layout = Montage.create(Component, {
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.documentRoot.childNodes;
66 } 66 }
67//
68// // Draw the elements and the 3d info
69// this.draw();
70// this.draw3DInfo(false);
71 } 67 }
72 }, 68 },
73 69
@@ -89,7 +85,6 @@ exports.Layout = Montage.create(Component, {
89 85
90 if(this.application.ninja.documentController.activeDocument.currentView === "design"){ 86 if(this.application.ninja.documentController.activeDocument.currentView === "design"){
91 // Make an array copy of the line node list which is not an array like object 87 // Make an array copy of the line node list which is not an array like object
92// this.domTree = Array.prototype.slice.call(this.application.ninja.documentController.activeDocument._liveNodeList, 0);
93 this.domTree = this.application.ninja.currentDocument.model.views.design.getLiveNodeList(true); 88 this.domTree = this.application.ninja.currentDocument.model.views.design.getLiveNodeList(true);
94 // Index of the current container 89 // Index of the current container
95 containerIndex = this.domTree.indexOf(this.application.ninja.currentSelectedContainer); 90 containerIndex = this.domTree.indexOf(this.application.ninja.currentSelectedContainer);
diff --git a/js/stage/stage-deps.js b/js/stage/stage-deps.js
index 64adc01c..896d4a5b 100755
--- a/js/stage/stage-deps.js
+++ b/js/stage/stage-deps.js
@@ -64,7 +64,6 @@ exports.StageDeps = Montage.create(Component, {
64 64
65 workingPlane = [0,0,1,0]; 65 workingPlane = [0,0,1,0];
66 66
67// snapManager.reload2DCache();
68 snapManager._isCacheInvalid = true; 67 snapManager._isCacheInvalid = true;
69 snapManager.setupDragPlaneFromPlane (workingPlane); 68 snapManager.setupDragPlaneFromPlane (workingPlane);
70 69
@@ -78,7 +77,6 @@ exports.StageDeps = Montage.create(Component, {
78 77
79 snapManager._isCacheInvalid = true; 78 snapManager._isCacheInvalid = true;
80 snapManager.setupDragPlaneFromPlane (workingPlane); 79 snapManager.setupDragPlaneFromPlane (workingPlane);
81// snapManager.reload2DCache();
82 80
83 drawUtils.initializeFromDocument(); 81 drawUtils.initializeFromDocument();
84 } 82 }