aboutsummaryrefslogtreecommitdiff
path: root/js/components
diff options
context:
space:
mode:
authorValerio Virgillito2012-02-09 00:52:39 -0800
committerValerio Virgillito2012-02-09 00:52:39 -0800
commite2539230b8a297fa972af6d53fe9de3ef2ad43fa (patch)
treec82ad619ce1babb3957e044c48d25792e2788c8e /js/components
parentc7df002135328edac03e72a1e4b331b2c72667f8 (diff)
downloadninja-e2539230b8a297fa972af6d53fe9de3ef2ad43fa.tar.gz
Switching the components panel to use the new ninja tree component.
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/components')
-rw-r--r--js/components/treeview/ninja-leaf.reel/ninja-leaf.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/components/treeview/ninja-leaf.reel/ninja-leaf.js b/js/components/treeview/ninja-leaf.reel/ninja-leaf.js
index bd566b26..ec2e7495 100644
--- a/js/components/treeview/ninja-leaf.reel/ninja-leaf.js
+++ b/js/components/treeview/ninja-leaf.reel/ninja-leaf.js
@@ -19,14 +19,14 @@ exports.Leaf = Montage.create(TreeNode, {
19 }, 19 },
20 prepareForDraw: { 20 prepareForDraw: {
21 value : function() { 21 value : function() {
22 this.activationEvent = this.activationEvent || 'click'; 22 this.activationEvent = this.activationEvent || 'dblclick';
23 this.label._element.addEventListener(this.activationEvent, this.handleNodeActivation.bind(this), false); 23 this.label._element.addEventListener(this.activationEvent, this.handleNodeActivation.bind(this), false);
24 } 24 }
25 }, 25 },
26 handleNodeActivation: { 26 handleNodeActivation: {
27 value: function(e) { 27 value: function(e) {
28 console.log(this.sourceObject); 28 //console.log(this.sourceObject);
29 this.treeView.contentController.delegate.applyPresetSelection(this.sourceObject); 29 this.treeView.contentController.delegate.applySelection(this.sourceObject);
30 } 30 }
31 }, 31 },
32 draw : { 32 draw : {