diff options
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 | } |