aboutsummaryrefslogtreecommitdiff
path: root/js/panels/css-panel/style.reel
diff options
context:
space:
mode:
Diffstat (limited to 'js/panels/css-panel/style.reel')
-rw-r--r--js/panels/css-panel/style.reel/style.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/js/panels/css-panel/style.reel/style.js b/js/panels/css-panel/style.reel/style.js
index b079bc73..c73da6e5 100644
--- a/js/panels/css-panel/style.reel/style.js
+++ b/js/panels/css-panel/style.reel/style.js
@@ -145,7 +145,16 @@ exports.Style = Montage.create(TreeNode, {
145 145
146 getRule : { 146 getRule : {
147 value: function() { 147 value: function() {
148 return this.treeView.parentComponent.declaration.parentRule; 148 var declarationComponent = this.treeView.parentComponent,
149 rule;
150
151 if(declarationComponent.type === 'inline') {
152 rule = { style : declarationComponent.declaration }
153 } else {
154 rule = this.treeView.parentComponent.declaration.parentRule;
155 }
156
157 return rule;
149 } 158 }
150 }, 159 },
151 160