From 143105a0b9c7765898b22d53489b4bd8df3dff2e Mon Sep 17 00:00:00 2001 From: Eric Guzman Date: Thu, 26 Apr 2012 03:15:49 -0700 Subject: CSS Panel - add handlers for css panel actions --- js/panels/css-panel/rule-list.reel/rule-list.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'js/panels/css-panel/rule-list.reel/rule-list.js') 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, Component = require("montage/ui/component").Component; exports.RuleList = Montage.create(Component, { - + focusDelegate : { + value: null + }, ruleNodeName : { value: 'li' }, _rules: { value: null }, @@ -59,6 +61,11 @@ exports.RuleList = Montage.create(Component, { if(componentBase) { instance = Montage.create(componentBase); instance.rule = rule; + + if(this.focusDelegate) { + instance.focusDelegate = this.focusDelegate; + } + this.rulesToDraw.push(instance); this.needsDraw = true; } -- cgit v1.2.3