Skip to content

Commit

Permalink
v1.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cheton committed Jul 15, 2016
1 parent 47dc755 commit 992e4d0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion dist/infinite-tree.js
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();
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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);
Expand Down
Loading

0 comments on commit 992e4d0

Please sign in to comment.