diff options
Diffstat (limited to 'js')
-rwxr-xr-x | js/document/views/design.js | 15 | ||||
-rwxr-xr-x | js/helper-classes/3D/snap-manager.js | 7 | ||||
-rwxr-xr-x | js/stage/layout.js | 5 | ||||
-rwxr-xr-x | js/stage/stage-deps.js | 2 |
4 files changed, 0 insertions, 29 deletions
diff --git a/js/document/views/design.js b/js/document/views/design.js index 427ef706..4f5f8da9 100755 --- a/js/document/views/design.js +++ b/js/document/views/design.js | |||
@@ -94,16 +94,6 @@ exports.DesignDocumentView = Montage.create(BaseDocumentView, { | |||
94 | //////////////////////////////////////////////////////////////////// | 94 | //////////////////////////////////////////////////////////////////// |
95 | // | 95 | // |
96 | 96 | ||
97 | initialPaddingLeft: { | ||
98 | value: 0 | ||
99 | }, | ||
100 | |||
101 | initialPaddingTop: { | ||
102 | value: 0 | ||
103 | }, | ||
104 | //////////////////////////////////////////////////////////////////// | ||
105 | // | ||
106 | |||
107 | // | 97 | // |
108 | initialize: { | 98 | initialize: { |
109 | value: function (parent) { | 99 | value: function (parent) { |
@@ -225,11 +215,6 @@ exports.DesignDocumentView = Montage.create(BaseDocumentView, { | |||
225 | this._bodyFragment = null; | 215 | this._bodyFragment = null; |
226 | //Calling standard method to finish opening document | 216 | //Calling standard method to finish opening document |
227 | this.bodyContentLoaded(null); | 217 | this.bodyContentLoaded(null); |
228 | //TODO: Move this to be set via the controller | ||
229 | // this.application.ninja.stage.documentOffsetLeft = parseInt((this.document.body.scrollWidth - this._template.size.width)/2); | ||
230 | // this.application.ninja.stage.documentOffsetTop = parseInt((this.document.body.scrollHeight - this._template.size.height)/2); | ||
231 | // this.initialPaddingLeft = parseInt((this.document.body.scrollWidth - this._template.size.width)/2); | ||
232 | // this.initialPaddingTop = parseInt((this.document.body.scrollHeight - this._template.size.height)/2); | ||
233 | } | 218 | } |
234 | }, | 219 | }, |
235 | //////////////////////////////////////////////////////////////////// | 220 | //////////////////////////////////////////////////////////////////// |
diff --git a/js/helper-classes/3D/snap-manager.js b/js/helper-classes/3D/snap-manager.js index 0f456e1e..f0f8dbe4 100755 --- a/js/helper-classes/3D/snap-manager.js +++ b/js/helper-classes/3D/snap-manager.js | |||
@@ -470,13 +470,6 @@ var SnapManager = exports.SnapManager = Montage.create(Component, { | |||
470 | } | 470 | } |
471 | }, | 471 | }, |
472 | 472 | ||
473 | reload2DCache: { | ||
474 | value: function() { | ||
475 | this.clear2DCache(); | ||
476 | this.load2DCache(workingPlane); | ||
477 | } | ||
478 | }, | ||
479 | |||
480 | clear2DCache : { | 473 | clear2DCache : { |
481 | value : function() { | 474 | value : function() { |
482 | // clear the 2D cache flags in the objects | 475 | // clear the 2D cache flags in the objects |
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 | } |