diff options
author | Eric Guzman | 2012-04-26 03:15:49 -0700 |
---|---|---|
committer | Eric Guzman | 2012-04-26 03:15:49 -0700 |
commit | 143105a0b9c7765898b22d53489b4bd8df3dff2e (patch) | |
tree | 05c6cd14d6400dc2393ebc4465ac3c31c42feb47 /js/panels/css-panel/declaration.reel/declaration.js | |
parent | f1d4c48cd12d4c1a4a8b8d7ce648ea510607cb88 (diff) | |
download | ninja-143105a0b9c7765898b22d53489b4bd8df3dff2e.tar.gz |
CSS Panel - add handlers for css panel actions
Diffstat (limited to 'js/panels/css-panel/declaration.reel/declaration.js')
-rw-r--r-- | js/panels/css-panel/declaration.reel/declaration.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/js/panels/css-panel/declaration.reel/declaration.js b/js/panels/css-panel/declaration.reel/declaration.js index 55fe0e18..9685510b 100644 --- a/js/panels/css-panel/declaration.reel/declaration.js +++ b/js/panels/css-panel/declaration.reel/declaration.js | |||
@@ -9,12 +9,16 @@ var Montage = require("montage/core/core").Montage, | |||
9 | ShorthandProps = require("js/panels/CSSPanel/css-shorthand-map"); | 9 | ShorthandProps = require("js/panels/CSSPanel/css-shorthand-map"); |
10 | 10 | ||
11 | exports.Declaration = Montage.create(Component, { | 11 | exports.Declaration = Montage.create(Component, { |
12 | focusDelegate : { | ||
13 | value: null | ||
14 | }, | ||
12 | includeEmptyStyle : { | 15 | includeEmptyStyle : { |
13 | value: true | 16 | value: true |
14 | }, | 17 | }, |
15 | templateDidLoad : { | 18 | templateDidLoad : { |
16 | value: function() { | 19 | value: function() { |
17 | console.log("declaration - template did load"); | 20 | console.log("declaration - template did load"); |
21 | this.treeController.delegate = this.focusDelegate || this; | ||
18 | } | 22 | } |
19 | }, | 23 | }, |
20 | prepareForDraw : { | 24 | prepareForDraw : { |
@@ -115,6 +119,12 @@ exports.Declaration = Montage.create(Component, { | |||
115 | distinct: true | 119 | distinct: true |
116 | }, | 120 | }, |
117 | 121 | ||
122 | addNewStyle : { | ||
123 | value: function() { | ||
124 | debugger; | ||
125 | } | ||
126 | }, | ||
127 | |||
118 | /* drag/drop events */ | 128 | /* drag/drop events */ |
119 | handleDrop : { | 129 | handleDrop : { |
120 | value: function(e) { | 130 | value: function(e) { |