[Tree] Enable gestures on labels

This commit is contained in:
Victor Woeltjen
2016-03-11 17:43:18 -08:00
parent 02ec6db104
commit f7ba24c0b6
5 changed files with 23 additions and 9 deletions

View File

@ -29,7 +29,7 @@ define([
], function ($, nodeTemplate, ToggleView, TreeLabelView) {
'use strict';
function TreeNodeView(subtreeFactory, selectFn) {
function TreeNodeView(gestureService, subtreeFactory, selectFn) {
this.li = $('<li>');
this.toggleView = new ToggleView(false);
@ -47,7 +47,7 @@ define([
}
}.bind(this));
this.labelView = new TreeLabelView();
this.labelView = new TreeLabelView(gestureService);
$(this.labelView.elements()).on('click', function () {
selectFn(this.activeObject);