-
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
8 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/*! infinite-tree v1.6.0 | (c) 2016 Cheton Wu <[email protected]> | MIT | https://github.com/cheton/infinite-tree */ | ||
/*! infinite-tree v1.7.0 | (c) 2016 Cheton Wu <[email protected]> | MIT | https://github.com/cheton/infinite-tree */ | ||
(function webpackUniversalModuleDefinition(root, factory) { | ||
if(typeof exports === 'object' && typeof module === 'object') | ||
module.exports = factory(); | ||
|
@@ -258,6 +258,10 @@ return /******/ (function(modules) { // webpackBootstrap | |
_this.selectNode(node); // selectNode will re-render the tree | ||
}, 0); | ||
}, | ||
'dblclick': function dblclick(event) { | ||
// Emit a "doubleClick" event | ||
_this.emit('doubleClick', event); | ||
}, | ||
// https://developer.mozilla.org/en-US/docs/Web/Events/dragstart | ||
// The dragstart event is fired when the user starts dragging an element or text selection. | ||
'dragstart': function dragstart(event) { | ||
|
@@ -466,6 +470,7 @@ return /******/ (function(modules) { // webpackBootstrap | |
}); | ||
|
||
(0, _domEvents.addEventListener)(this.contentElement, 'click', this.contentListener.click); | ||
(0, _domEvents.addEventListener)(this.contentElement, 'dblclick', this.contentListener.dblclick); | ||
|
||
if (this.options.droppable) { | ||
(0, _domEvents.addEventListener)(document, 'dragstart', this.contentListener.dragstart); | ||
|
Oops, something went wrong.