diff options
author | Eric Guzman | 2012-05-18 14:05:06 -0700 |
---|---|---|
committer | Eric Guzman | 2012-05-18 14:05:06 -0700 |
commit | 197a7646e472fcea616764685c8d03c6063e66f5 (patch) | |
tree | 793ef1007234f15958127b3c6f2fb3ff7b7a598b /js/panels/css-panel/css-style.reel/css-style.js | |
parent | 18c260f5f55608d4774aea27f6c2d23e89921361 (diff) | |
download | ninja-197a7646e472fcea616764685c8d03c6063e66f5.tar.gz |
CSS Panel - Add support for deleting style sheets
Diffstat (limited to 'js/panels/css-panel/css-style.reel/css-style.js')
-rw-r--r-- | js/panels/css-panel/css-style.reel/css-style.js | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/js/panels/css-panel/css-style.reel/css-style.js b/js/panels/css-panel/css-style.reel/css-style.js index 3a07f8f1..1787665f 100644 --- a/js/panels/css-panel/css-style.reel/css-style.js +++ b/js/panels/css-panel/css-style.reel/css-style.js | |||
@@ -143,17 +143,8 @@ exports.CssStyle = Montage.create(Component, { | |||
143 | 143 | ||
144 | getRule : { | 144 | getRule : { |
145 | value: function() { | 145 | value: function() { |
146 | //var declarationComponent = this.treeView.parentComponent, | 146 | var declarationComponent = this.parentComponent.parentComponent.parentComponent |
147 | var declarationComponent = this.parentComponent.parentComponent.parentComponent, | 147 | return declarationComponent.rule; |
148 | rule; | ||
149 | |||
150 | if(declarationComponent.type === 'inline') { | ||
151 | rule = { style : declarationComponent.declaration } | ||
152 | } else { | ||
153 | rule = this.parentComponent.parentComponent.parentComponent.declaration.parentRule; | ||
154 | } | ||
155 | |||
156 | return rule; | ||
157 | } | 148 | } |
158 | }, | 149 | }, |
159 | 150 | ||