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/layout.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/layout.js')
-rwxr-xr-x | js/stage/layout.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/js/stage/layout.js b/js/stage/layout.js index 8b66150d..284968e4 100755 --- a/js/stage/layout.js +++ b/js/stage/layout.js | |||
@@ -33,13 +33,15 @@ exports.Layout = Montage.create(Component, { | |||
33 | return this._currentDocument; | 33 | return this._currentDocument; |
34 | }, | 34 | }, |
35 | set : function(value) { | 35 | set : function(value) { |
36 | if (value === this._currentDocument || value.getProperty("currentView") !== "design") { | 36 | if (value === this._currentDocument) {// || value.getProperty("currentView") !== "design") { |
37 | return; | 37 | return; |
38 | } | 38 | } |
39 | 39 | ||
40 | this._currentDocument = value; | 40 | this._currentDocument = value; |
41 | 41 | ||
42 | if(this._currentDocument) { | 42 | if(!value) { |
43 | |||
44 | } else if(this._currentDocument.currentView === "design") { | ||
43 | this.elementsToDraw = this._currentDocument.model.documentRoot.childNodes; | 45 | this.elementsToDraw = this._currentDocument.model.documentRoot.childNodes; |
44 | } | 46 | } |
45 | } | 47 | } |