From 40e03e102c14a343efee1bdcf32d0d244e3f8344 Mon Sep 17 00:00:00 2001 From: Eric Guzman Date: Tue, 13 Mar 2012 15:52:33 -0700 Subject: CSS Panel - Style updates for collapsing branches --- js/panels/css-panel/style-shorthand.reel/style-shorthand.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'js/panels/css-panel/style-shorthand.reel/style-shorthand.js') diff --git a/js/panels/css-panel/style-shorthand.reel/style-shorthand.js b/js/panels/css-panel/style-shorthand.reel/style-shorthand.js index 00749faa..e64d64c7 100644 --- a/js/panels/css-panel/style-shorthand.reel/style-shorthand.js +++ b/js/panels/css-panel/style-shorthand.reel/style-shorthand.js @@ -20,13 +20,16 @@ var styleShorthand = exports.StyleShorthand= Montage.create(TreeNode, { }, prepareForDraw : { value: function() { - this.styleListDisclosure.addEventListener('click', this, false); +// this.styleListDisclosure.addEventListener('click', this, false); this.treeView.contentController.addBranchController(this.arrayController); } }, templateDidLoad: { value: function() { this.arrayController.delegate = this.treeView.contentController; + + this.branchCollapser.removeAttribute('id'); + this.branchCollapser.addEventListener('click', this, false); } }, willDraw : { -- cgit v1.2.3