diff options
author | Eric Guzman | 2012-07-20 11:23:39 -0700 |
---|---|---|
committer | Eric Guzman | 2012-07-20 11:23:39 -0700 |
commit | 8fdf2fc8aefee68aec4c7b5891e0375f704cbf26 (patch) | |
tree | d59bc1f1461a19f8a29f7ea7a07726e4875c3967 /js/panels/css-panel/styles-view-container.reel/styles-view-container.js | |
parent | 36be3f52a0eaf176213f4d46056e684e0a1b7653 (diff) | |
download | ninja-8fdf2fc8aefee68aec4c7b5891e0375f704cbf26.tar.gz |
CSS Panel - Fix updating when media changes, sheets are deleted.
Diffstat (limited to 'js/panels/css-panel/styles-view-container.reel/styles-view-container.js')
-rw-r--r-- | js/panels/css-panel/styles-view-container.reel/styles-view-container.js | 6 |
1 files changed, 6 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 bba178f2..94abb4b0 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 | |||
@@ -141,6 +141,12 @@ exports.StylesViewContainer = Montage.create(Component, { | |||
141 | value: function() { | 141 | value: function() { |
142 | this.eventManager.addEventListener('styleSheetsReady', this, false); | 142 | this.eventManager.addEventListener('styleSheetsReady', this, false); |
143 | this.eventManager.addEventListener('elementChange', this, false); | 143 | this.eventManager.addEventListener('elementChange', this, false); |
144 | this.eventManager.addEventListener('mediaChange', this, false); | ||
145 | } | ||
146 | }, | ||
147 | handleMediaChange : { | ||
148 | value: function(e) { | ||
149 | this.ruleListContainer.update(); | ||
144 | } | 150 | } |
145 | }, | 151 | }, |
146 | handleStyleSheetsReady: { | 152 | handleStyleSheetsReady: { |