diff options
author | Armen Kesablyan | 2012-06-27 15:38:33 -0700 |
---|---|---|
committer | Armen Kesablyan | 2012-06-27 15:38:33 -0700 |
commit | 8eb74d31d3c9ac60d48312d8774fd02cad0c77af (patch) | |
tree | ae79629cedf9f683d77749a25988060ab9623216 /js/panels/css-panel | |
parent | ec6759f9821a5647905617e3992fdda1cea390ef (diff) | |
parent | 61a41e74154715b0b42a429158fa1f2a44d2eb9a (diff) | |
download | ninja-8eb74d31d3c9ac60d48312d8774fd02cad0c77af.tar.gz |
Merge branch 'Bindables_GIO' of https://github.com/ericguzman/ninja-internal
Diffstat (limited to 'js/panels/css-panel')
3 files changed, 10 insertions, 5 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 5361e5cc..d86c8d55 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 | |||
@@ -96,7 +96,10 @@ exports.CssStyleRule = Montage.create(Component, { | |||
96 | handleStop : { | 96 | handleStop : { |
97 | value: function(e) { | 97 | value: function(e) { |
98 | if(this.focusDelegate) { | 98 | if(this.focusDelegate) { |
99 | e._event.detail.preventDefault(); | 99 | if(e._event.detail.preventDefault) { |
100 | e._event.detail.preventDefault(); | ||
101 | } | ||
102 | |||
100 | this.focusDelegate.handleSelectorStop(this.rule, this.selectorField.value, this); | 103 | this.focusDelegate.handleSelectorStop(this.rule, this.selectorField.value, this); |
101 | } | 104 | } |
102 | } | 105 | } |
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 509ca565..f53937e6 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 | |||
@@ -39,11 +39,13 @@ exports.RuleListContainer = Montage.create(Component, { | |||
39 | value: function(selection) { | 39 | value: function(selection) { |
40 | var list = this._getListForSelection(selection); | 40 | var list = this._getListForSelection(selection); |
41 | 41 | ||
42 | if(!list) { | 42 | if(list) { |
43 | this.displayedList = list; | ||
44 | this.update(); | ||
45 | } else { | ||
43 | list = this.add(selection); | 46 | list = this.add(selection); |
47 | this.displayedList = list; | ||
44 | } | 48 | } |
45 | |||
46 | this.displayedList = list; | ||
47 | } | 49 | } |
48 | }, | 50 | }, |
49 | 51 | ||
diff --git a/js/panels/css-panel/rule-list.reel/rule-list.js b/js/panels/css-panel/rule-list.reel/rule-list.js index 27d74b2f..b4cd9e97 100644 --- a/js/panels/css-panel/rule-list.reel/rule-list.js +++ b/js/panels/css-panel/rule-list.reel/rule-list.js | |||
@@ -81,7 +81,7 @@ exports.RuleList = Montage.create(Component, { | |||
81 | // found rule in our component list, or it's the inline rule | 81 | // found rule in our component list, or it's the inline rule |
82 | ruleComponent.update(); | 82 | ruleComponent.update(); |
83 | foundIndices.push(index); | 83 | foundIndices.push(index); |
84 | } else if(!rule.applied) { /// remove rule (unless unapplied) | 84 | } else if(!ruleComponent.applied) { /// remove rule (unless unapplied) |
85 | this.rulesToRemove.push(ruleComponent); | 85 | this.rulesToRemove.push(ruleComponent); |
86 | } | 86 | } |
87 | }, this); | 87 | }, this); |