diff options
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) { |