aboutsummaryrefslogtreecommitdiff
path: root/js/panels/css-panel/rule-list.reel/rule-list.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/panels/css-panel/rule-list.reel/rule-list.js')
-rw-r--r--js/panels/css-panel/rule-list.reel/rule-list.js9
1 files changed, 8 insertions, 1 deletions
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 ebd7428b..0faff07e 100644
--- a/js/panels/css-panel/rule-list.reel/rule-list.js
+++ b/js/panels/css-panel/rule-list.reel/rule-list.js
@@ -8,7 +8,9 @@ var Montage = require("montage/core/core").Montage,
8 Component = require("montage/ui/component").Component; 8 Component = require("montage/ui/component").Component;
9 9
10exports.RuleList = Montage.create(Component, { 10exports.RuleList = Montage.create(Component, {
11 11 focusDelegate : {
12 value: null
13 },
12 ruleNodeName : { value: 'li' }, 14 ruleNodeName : { value: 'li' },
13 15
14 _rules: { value: null }, 16 _rules: { value: null },
@@ -59,6 +61,11 @@ exports.RuleList = Montage.create(Component, {
59 if(componentBase) { 61 if(componentBase) {
60 instance = Montage.create(componentBase); 62 instance = Montage.create(componentBase);
61 instance.rule = rule; 63 instance.rule = rule;
64
65 if(this.focusDelegate) {
66 instance.focusDelegate = this.focusDelegate;
67 }
68
62 this.rulesToDraw.push(instance); 69 this.rulesToDraw.push(instance);
63 this.needsDraw = true; 70 this.needsDraw = true;
64 } 71 }