diff options
author | Valerio Virgillito | 2012-05-30 01:33:20 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-05-30 01:33:20 -0700 |
commit | 31b094ee21102f99a4021d505bc3a28527c9e23d (patch) | |
tree | a9525ea312f8cc0d25ab6410394f01e974b69068 /js/stage/stage-deps.js | |
parent | d8840eda0d3b3e31fb5a72306fe66608f4f99c2b (diff) | |
download | ninja-31b094ee21102f99a4021d505bc3a28527c9e23d.tar.gz |
Fixing the close document.
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/stage/stage-deps.js')
-rwxr-xr-x | js/stage/stage-deps.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/js/stage/stage-deps.js b/js/stage/stage-deps.js index 756844fd..f27254f9 100755 --- a/js/stage/stage-deps.js +++ b/js/stage/stage-deps.js | |||
@@ -25,13 +25,15 @@ exports.StageDeps = Montage.create(Component, { | |||
25 | return this._currentDocument; | 25 | return this._currentDocument; |
26 | }, | 26 | }, |
27 | set : function(value) { | 27 | set : function(value) { |
28 | if (value === this._currentDocument || value.getProperty("currentView") !== "design") { | 28 | if (value === this._currentDocument) {// || value.getProperty("currentView") !== "design") { |
29 | return; | 29 | return; |
30 | } | 30 | } |
31 | 31 | ||
32 | this._currentDocument = value; | 32 | this._currentDocument = value; |
33 | 33 | ||
34 | if(this._currentDocument) { | 34 | if(!value) { |
35 | |||
36 | } else if(this._currentDocument.currentView === "design") { | ||
35 | workingPlane = [0,0,1,0]; | 37 | workingPlane = [0,0,1,0]; |
36 | 38 | ||
37 | snapManager._isCacheInvalid = true; | 39 | snapManager._isCacheInvalid = true; |
@@ -39,6 +41,7 @@ exports.StageDeps = Montage.create(Component, { | |||
39 | 41 | ||
40 | drawUtils.initializeFromDocument(); | 42 | drawUtils.initializeFromDocument(); |
41 | } | 43 | } |
44 | |||
42 | } | 45 | } |
43 | }, | 46 | }, |
44 | 47 | ||