From e2539230b8a297fa972af6d53fe9de3ef2ad43fa Mon Sep 17 00:00:00 2001 From: Valerio Virgillito Date: Thu, 9 Feb 2012 00:52:39 -0800 Subject: Switching the components panel to use the new ninja tree component. Signed-off-by: Valerio Virgillito --- js/components/treeview/ninja-leaf.reel/ninja-leaf.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'js/components/treeview') 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, { }, prepareForDraw: { value : function() { - this.activationEvent = this.activationEvent || 'click'; + this.activationEvent = this.activationEvent || 'dblclick'; this.label._element.addEventListener(this.activationEvent, this.handleNodeActivation.bind(this), false); } }, handleNodeActivation: { value: function(e) { - console.log(this.sourceObject); - this.treeView.contentController.delegate.applyPresetSelection(this.sourceObject); + //console.log(this.sourceObject); + this.treeView.contentController.delegate.applySelection(this.sourceObject); } }, draw : { -- cgit v1.2.3