diff options
Diffstat (limited to 'js')
-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() { |