diff options
-rw-r--r-- | js/panels/css-panel/rule-components/css-style-rule.reel/css-style-rule.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/js/panels/css-panel/rule-components/css-style-rule.reel/css-style-rule.js b/js/panels/css-panel/rule-components/css-style-rule.reel/css-style-rule.js index a0ff4b4e..dd51565a 100644 --- a/js/panels/css-panel/rule-components/css-style-rule.reel/css-style-rule.js +++ b/js/panels/css-panel/rule-components/css-style-rule.reel/css-style-rule.js | |||
@@ -23,9 +23,14 @@ exports.CssStyleRule = Montage.create(Component, { | |||
23 | }, | 23 | }, |
24 | set: function(rule) { | 24 | set: function(rule) { |
25 | this.cssText = rule.cssText; | 25 | this.cssText = rule.cssText; |
26 | this.sheetName = rule.href || 'Style Tag'; | ||
27 | this.selector = rule.selectorText; | ||
28 | 26 | ||
27 | if(rule.type === 'inline') { | ||
28 | this.sheetName = 'Inline Style'; | ||
29 | } else { | ||
30 | this.sheetName = rule.href || 'Style Tag'; | ||
31 | } | ||
32 | |||
33 | this.selector = rule.selectorText; | ||
29 | this.declaration = rule.style; | 34 | this.declaration = rule.style; |
30 | 35 | ||
31 | console.log('Rule with selector "' +rule.selectorText+ '" is set on componenet.'); | 36 | console.log('Rule with selector "' +rule.selectorText+ '" is set on componenet.'); |