diff options
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 | ||