aboutsummaryrefslogtreecommitdiff
path: root/js/panels/properties.reel
diff options
context:
space:
mode:
authorValerio Virgillito2012-05-30 01:33:20 -0700
committerValerio Virgillito2012-05-30 01:33:20 -0700
commit31b094ee21102f99a4021d505bc3a28527c9e23d (patch)
treea9525ea312f8cc0d25ab6410394f01e974b69068 /js/panels/properties.reel
parentd8840eda0d3b3e31fb5a72306fe66608f4f99c2b (diff)
downloadninja-31b094ee21102f99a4021d505bc3a28527c9e23d.tar.gz
Fixing the close document.
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/panels/properties.reel')
-rwxr-xr-xjs/panels/properties.reel/properties.js11
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 */