From eb80f8a610100f908b5cb9ffc65bfa94f8a23c21 Mon Sep 17 00:00:00 2001 From: Eric Guzman Date: Tue, 8 May 2012 13:26:36 -0700 Subject: CSS Panel - Create non-tree declaration (optimized). And add updating functionality. --- .../css-style-rule.reel/css-style-rule.html | 25 ++++++++++++++++++++-- .../css-style-rule.reel/css-style-rule.js | 2 +- 2 files changed, 24 insertions(+), 3 deletions(-) (limited to 'js/panels/css-panel/rule-components/css-style-rule.reel') diff --git a/js/panels/css-panel/rule-components/css-style-rule.reel/css-style-rule.html b/js/panels/css-panel/rule-components/css-style-rule.reel/css-style-rule.html index bf101719..05ea669f 100644 --- a/js/panels/css-panel/rule-components/css-style-rule.reel/css-style-rule.html +++ b/js/panels/css-panel/rule-components/css-style-rule.reel/css-style-rule.html @@ -49,8 +49,8 @@ No rights, expressed or implied, whatsoever to this software are provided by Mot } }, "declaration": { - "module": "js/panels/css-panel/declaration.reel", - "name": "Declaration", + "module": "js/panels/css-panel/style-declaration.reel", + "name": "StyleDeclaration", "properties": { "element": {"#": "declaration-list"} }, @@ -76,6 +76,27 @@ No rights, expressed or implied, whatsoever to this software are provided by Mot } } +
  • 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 7a6a3957..c74502c0 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 @@ -103,7 +103,7 @@ exports.CssStyleRule = Montage.create(Component, { value: function() { if(this.cssText !== this.rule.cssText) { // TODO: add update for selector and stylesheet name - //this.declarationComponent.update(); + this.declarationComponent.update(); } } }, -- cgit v1.2.3