aboutsummaryrefslogtreecommitdiff
path: root/js/components/treeview
diff options
context:
space:
mode:
Diffstat (limited to 'js/components/treeview')
-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 : {