From 313e0336cc72a1dc773bfa0e3d41b2993339f9af Mon Sep 17 00:00:00 2001 From: Eric Guzman Date: Wed, 4 Apr 2012 17:57:13 -0700 Subject: Rule List - Update selection to not use "_element" property. --- js/panels/css-panel/rule-list-container.reel/rule-list-container.js | 2 +- .../css-panel/styles-view-container.reel/styles-view-container.js | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/js/panels/css-panel/rule-list-container.reel/rule-list-container.js b/js/panels/css-panel/rule-list-container.reel/rule-list-container.js index 03c609d7..04689602 100644 --- a/js/panels/css-panel/rule-list-container.reel/rule-list-container.js +++ b/js/panels/css-panel/rule-list-container.reel/rule-list-container.js @@ -59,7 +59,7 @@ exports.RuleListContainer = Montage.create(Component, { listInstance = Montage.create(this.ruleListComponent), container = document.createElement('div'), rules; -//debugger; + if(type === 'ELEMENT') { rules = stylesController.getMatchingRules(selection); } diff --git a/js/panels/css-panel/styles-view-container.reel/styles-view-container.js b/js/panels/css-panel/styles-view-container.reel/styles-view-container.js index 5967345a..7df39d39 100644 --- a/js/panels/css-panel/styles-view-container.reel/styles-view-container.js +++ b/js/panels/css-panel/styles-view-container.reel/styles-view-container.js @@ -46,12 +46,10 @@ exports.StylesViewContainer = Montage.create(Component, { return false; } else if(elements.length > 1) { type = 'ELEMENTS'; - selection = elements.map(function(obj) { - return obj._element; - }); + selection = elements; } else { type = 'ELEMENT'; - selection = elements[0]._element; + selection = elements[0]; } ruleList = this.ruleListContainer._getRuleList({ -- cgit v1.2.3