Action on left-click only

This commit is contained in:
Buu Nguyen 2014-07-07 16:03:46 -07:00
parent e6ed5893c7
commit fbe17261cb
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ function TreeView($dom, store, adapter) {
})
.on('click', function(event) {
var $target = $(event.target)
if (!$target.is('a.jstree-anchor') || event.which != 1) return
if (!$target.is('a.jstree-anchor') || event.which !== 1) return
var href = $target.attr('href')
, $icon = $target.children().length