aboutsummaryrefslogtreecommitdiff
path: root/js/panels/css-panel/declaration.reel/declaration.js
diff options
context:
space:
mode:
authorEric Guzman2012-04-30 13:46:55 -0700
committerEric Guzman2012-04-30 13:46:55 -0700
commitaea46a37ae8038da570fc7cf07ef6e8c0d9ef577 (patch)
treeb943b0945cec890ccd78bff2d56aee0e65bd26bd /js/panels/css-panel/declaration.reel/declaration.js
parent4332599afffae987a18bb197fcfdd09bc2e94d2b (diff)
downloadninja-aea46a37ae8038da570fc7cf07ef6e8c0d9ef577.tar.gz
CSS Style - Add style interaction
Diffstat (limited to 'js/panels/css-panel/declaration.reel/declaration.js')
-rw-r--r--js/panels/css-panel/declaration.reel/declaration.js19
1 files changed, 15 insertions, 4 deletions
diff --git a/js/panels/css-panel/declaration.reel/declaration.js b/js/panels/css-panel/declaration.reel/declaration.js
index 9685510b..873d2ce4 100644
--- a/js/panels/css-panel/declaration.reel/declaration.js
+++ b/js/panels/css-panel/declaration.reel/declaration.js
@@ -18,7 +18,10 @@ exports.Declaration = Montage.create(Component, {
18 templateDidLoad : { 18 templateDidLoad : {
19 value: function() { 19 value: function() {
20 console.log("declaration - template did load"); 20 console.log("declaration - template did load");
21 this.treeController.delegate = this.focusDelegate || this; 21
22 if(this.focusDelegate) {
23 this.treeController.delegate = this.focusDelegate;
24 }
22 } 25 }
23 }, 26 },
24 prepareForDraw : { 27 prepareForDraw : {
@@ -119,9 +122,17 @@ exports.Declaration = Montage.create(Component, {
119 distinct: true 122 distinct: true
120 }, 123 },
121 124
122 addNewStyle : { 125 addNewStyleAfter : {
123 value: function() { 126 value: function(style) {
124 debugger; 127 //this.treeController.branchControllers[0].addObjects({
128 foo1 = style.parentComponent.parentComponent;
129 style.parentComponent.parentComponent.contentController.addObjects({
130 name: 'property',
131 value: 'value',
132 isEmpty: true,
133 treeNodeType: 'leaf'
134 });
135 style.parentComponent.parentComponent.needsDraw = true;
125 } 136 }
126 }, 137 },
127 138