aboutsummaryrefslogtreecommitdiff
path: root/js/panels/css-panel/rule-list.reel/rule-list.js
diff options
context:
space:
mode:
authorEric Guzman2012-04-26 03:15:49 -0700
committerEric Guzman2012-04-26 03:15:49 -0700
commit143105a0b9c7765898b22d53489b4bd8df3dff2e (patch)
tree05c6cd14d6400dc2393ebc4465ac3c31c42feb47 /js/panels/css-panel/rule-list.reel/rule-list.js
parentf1d4c48cd12d4c1a4a8b8d7ce648ea510607cb88 (diff)
downloadninja-143105a0b9c7765898b22d53489b4bd8df3dff2e.tar.gz
CSS Panel - add handlers for css panel actions
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 }