diff options
author | Eric Guzman | 2012-05-25 16:37:43 -0700 |
---|---|---|
committer | Eric Guzman | 2012-05-25 16:37:43 -0700 |
commit | e884d2769a53dd8920b485672631b50158ed0800 (patch) | |
tree | 526934085f973f0bcfef5a3f130794530396aa03 /js/helper-classes/3D/snap-manager.js | |
parent | 1f7c17d688c3340b31d2e1c2b7205b10bd806968 (diff) | |
parent | 81239571c538f72e398fafa5b07725bf1bbb2d5d (diff) | |
download | ninja-e884d2769a53dd8920b485672631b50158ed0800.tar.gz |
Merge branch 'binding' of github.com:dhg637/ninja-internal into binding
Diffstat (limited to 'js/helper-classes/3D/snap-manager.js')
-rwxr-xr-x | js/helper-classes/3D/snap-manager.js | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/js/helper-classes/3D/snap-manager.js b/js/helper-classes/3D/snap-manager.js index 0f456e1e..069c6022 100755 --- a/js/helper-classes/3D/snap-manager.js +++ b/js/helper-classes/3D/snap-manager.js | |||
@@ -83,14 +83,14 @@ var SnapManager = exports.SnapManager = Montage.create(Component, { | |||
83 | popWorkingPlane : { value: function () { workingPlane = this._workingPlaneStack.pop(); return workingPlane; }}, | 83 | popWorkingPlane : { value: function () { workingPlane = this._workingPlaneStack.pop(); return workingPlane; }}, |
84 | 84 | ||
85 | getStageWidth : { value: function () { | 85 | getStageWidth : { value: function () { |
86 | return parseInt(this.application.ninja.currentDocument.documentRoot.offsetWidth); | 86 | return parseInt(this.application.ninja.currentDocument.model.documentRoot.offsetWidth); |
87 | }}, | 87 | }}, |
88 | 88 | ||
89 | getStageHeight : { value: function () { | 89 | getStageHeight : { value: function () { |
90 | return parseInt(this.application.ninja.currentDocument.documentRoot.offsetHeight); | 90 | return parseInt(this.application.ninja.currentDocument.model.documentRoot.offsetHeight); |
91 | }}, | 91 | }}, |
92 | 92 | ||
93 | getStage : { value: function() { return this.application.ninja.currentDocument.documentRoot; }}, | 93 | getStage : { value: function() { return this.application.ninja.currentDocument.model.documentRoot; }}, |
94 | 94 | ||
95 | getGridVertexHitRad : { value: function() { return this._gridVertexHitRad; }}, | 95 | getGridVertexHitRad : { value: function() { return this._gridVertexHitRad; }}, |
96 | getGridEdgeHitRad : { value: function() { return this._gridEdgeHitRad; }}, | 96 | getGridEdgeHitRad : { value: function() { return this._gridEdgeHitRad; }}, |
@@ -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 |