diff options
author | Eric Guzman | 2012-05-01 11:15:14 -0700 |
---|---|---|
committer | Eric Guzman | 2012-05-01 11:15:14 -0700 |
commit | 9a94c6fb5f82d18139b48341788a0ffca23ae0af (patch) | |
tree | c76f84915d7135c81e38f1abc003b6a3b34ff2c3 /js/panels/css-panel/styles-view-container.reel | |
parent | 23d8efd4ed9e8fd43f516595009679fb44c8096d (diff) | |
download | ninja-9a94c6fb5f82d18139b48341788a0ffca23ae0af.tar.gz |
CSS Panel - Added removing of rules/styles
Diffstat (limited to 'js/panels/css-panel/styles-view-container.reel')
-rw-r--r-- | js/panels/css-panel/styles-view-container.reel/styles-view-container.js | 8 |
1 files changed, 8 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 0204d2b8..e51c78cd 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 | |||
@@ -29,6 +29,7 @@ exports.StylesViewContainer = Montage.create(Component, { | |||
29 | templateDidLoad : { | 29 | templateDidLoad : { |
30 | value: function() { | 30 | value: function() { |
31 | this.eventManager.addEventListener('styleSheetsReady', this, false); | 31 | this.eventManager.addEventListener('styleSheetsReady', this, false); |
32 | this.eventManager.addEventListener('elementChange', this, false); | ||
32 | } | 33 | } |
33 | }, | 34 | }, |
34 | handleStyleSheetsReady: { | 35 | handleStyleSheetsReady: { |
@@ -46,6 +47,13 @@ exports.StylesViewContainer = Montage.create(Component, { | |||
46 | this.hasStyles = true; | 47 | this.hasStyles = true; |
47 | } | 48 | } |
48 | }, | 49 | }, |
50 | handleElementChange : { | ||
51 | value: function(e) { | ||
52 | if(e._event.detail.type !== 'cssChange') { | ||
53 | this.ruleListContainer.displayedList.component.update(); | ||
54 | } | ||
55 | } | ||
56 | }, | ||
49 | 57 | ||
50 | draw : { | 58 | draw : { |
51 | value: function() { | 59 | value: function() { |