diff options
author | Eric Guzman | 2012-05-17 16:00:41 -0700 |
---|---|---|
committer | Eric Guzman | 2012-05-17 16:00:41 -0700 |
commit | d6f48218eb28804d4afbbf8b3e893aec8c19e520 (patch) | |
tree | 4c6dd5ac97da084d66ed9a39e0def0b633683b93 /js/panels | |
parent | d278cae39955e9897404f20c22bab567977ac685 (diff) | |
download | ninja-d6f48218eb28804d4afbbf8b3e893aec8c19e520.tar.gz |
CSS Panel - Clear styles section on document close
Diffstat (limited to 'js/panels')
-rw-r--r-- | js/panels/css-panel/styles-view-container.reel/styles-view-container.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/js/panels/css-panel/styles-view-container.reel/styles-view-container.js b/js/panels/css-panel/styles-view-container.reel/styles-view-container.js index e6e836ad..e63e3c74 100644 --- a/js/panels/css-panel/styles-view-container.reel/styles-view-container.js +++ b/js/panels/css-panel/styles-view-container.reel/styles-view-container.js | |||
@@ -67,6 +67,7 @@ exports.StylesViewContainer = Montage.create(Component, { | |||
67 | this.eventManager.addEventListener('styleSheetsReady', this, false); | 67 | this.eventManager.addEventListener('styleSheetsReady', this, false); |
68 | //this.eventManager.addEventListener('elementChanging', this, false); | 68 | //this.eventManager.addEventListener('elementChanging', this, false); |
69 | this.eventManager.addEventListener('elementChange', this, false); | 69 | this.eventManager.addEventListener('elementChange', this, false); |
70 | this.eventManager.addEventListener("closeDocument", this, false); | ||
70 | } | 71 | } |
71 | }, | 72 | }, |
72 | handleStyleSheetsReady: { | 73 | handleStyleSheetsReady: { |
@@ -150,6 +151,12 @@ exports.StylesViewContainer = Montage.create(Component, { | |||
150 | 151 | ||
151 | } | 152 | } |
152 | }, | 153 | }, |
154 | handleCloseDocument: { | ||
155 | value: function(e) { | ||
156 | this.hasStyles = false; | ||
157 | this.needsDraw = true; | ||
158 | } | ||
159 | }, | ||
153 | 160 | ||
154 | draw : { | 161 | draw : { |
155 | value: function() { | 162 | value: function() { |