diff options
Diffstat (limited to 'js/panels/properties.reel')
-rwxr-xr-x | js/panels/properties.reel/properties.js | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/js/panels/properties.reel/properties.js b/js/panels/properties.reel/properties.js index e99f58e9..4b663220 100755 --- a/js/panels/properties.reel/properties.js +++ b/js/panels/properties.reel/properties.js | |||
@@ -29,7 +29,9 @@ exports.Properties = Montage.create(Component, { | |||
29 | 29 | ||
30 | this._currentDocument = value; | 30 | this._currentDocument = value; |
31 | 31 | ||
32 | if(this._currentDocument.currentView === "design") { | 32 | if(!value) { |
33 | this.clear(); | ||
34 | } else if(this._currentDocument.currentView === "design") { | ||
33 | // Save a reference of the pi inside the document view to be able to clear | 35 | // Save a reference of the pi inside the document view to be able to clear |
34 | this._currentDocument.model.views.design.propertiesPanel = this; | 36 | this._currentDocument.model.views.design.propertiesPanel = this; |
35 | 37 | ||
@@ -74,7 +76,6 @@ exports.Properties = Montage.create(Component, { | |||
74 | value : function() { | 76 | value : function() { |
75 | this.eventManager.addEventListener("elementChange", this, false); | 77 | this.eventManager.addEventListener("elementChange", this, false); |
76 | this.eventManager.addEventListener("selectionChange", this, false); | 78 | this.eventManager.addEventListener("selectionChange", this, false); |
77 | this.eventManager.addEventListener("closeDocument", this, false); | ||
78 | 79 | ||
79 | // This will be a toggle option | 80 | // This will be a toggle option |
80 | if(this.application.ninja.appData.PILiveUpdate) { | 81 | if(this.application.ninja.appData.PILiveUpdate) { |
@@ -91,12 +92,6 @@ exports.Properties = Montage.create(Component, { | |||
91 | } | 92 | } |
92 | }, | 93 | }, |
93 | 94 | ||
94 | handleCloseDocument: { | ||
95 | value: function(){ | ||
96 | this.clear(); | ||
97 | } | ||
98 | }, | ||
99 | |||
100 | /** | 95 | /** |
101 | * Blur and Key up to handle change in the Element ID field. | 96 | * Blur and Key up to handle change in the Element ID field. |
102 | */ | 97 | */ |