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/panels/PanelContainer.reel | |
parent | d8840eda0d3b3e31fb5a72306fe66608f4f99c2b (diff) | |
download | ninja-31b094ee21102f99a4021d505bc3a28527c9e23d.tar.gz |
Fixing the close document.
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/panels/PanelContainer.reel')
-rwxr-xr-x | js/panels/PanelContainer.reel/PanelContainer.js | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/js/panels/PanelContainer.reel/PanelContainer.js b/js/panels/PanelContainer.reel/PanelContainer.js index dc501a99..7cb03255 100755 --- a/js/panels/PanelContainer.reel/PanelContainer.js +++ b/js/panels/PanelContainer.reel/PanelContainer.js | |||
@@ -81,8 +81,6 @@ exports.PanelContainer = Montage.create(Component, { | |||
81 | } | 81 | } |
82 | 82 | ||
83 | this.application.localStorage.setItem("panels", this.currentPanelState); | 83 | this.application.localStorage.setItem("panels", this.currentPanelState); |
84 | |||
85 | this.eventManager.addEventListener( "closeDocument", this, false); | ||
86 | } | 84 | } |
87 | }, | 85 | }, |
88 | 86 | ||
@@ -104,16 +102,6 @@ exports.PanelContainer = Montage.create(Component, { | |||
104 | } | 102 | } |
105 | }, | 103 | }, |
106 | 104 | ||
107 | handleCloseDocument: { | ||
108 | value: function(){ | ||
109 | if(!this.application.ninja.documentController.activeDocument) { | ||
110 | this.panels.forEach(function(obj) { | ||
111 | obj.disabled = true; | ||
112 | }); | ||
113 | } | ||
114 | } | ||
115 | }, | ||
116 | |||
117 | handleDropped: { | 105 | handleDropped: { |
118 | value: function(e) { | 106 | value: function(e) { |
119 | var draggedIndex, droppedIndex = 0, len = this.panels.length; | 107 | var draggedIndex, droppedIndex = 0, len = this.panels.length; |