Skip to content

Commit

Permalink
namespaced events
Browse files Browse the repository at this point in the history
  • Loading branch information
vakata committed Sep 17, 2018
1 parent 69745e8 commit c10d304
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/jstree.dnd.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,12 @@
marker = $('<div id="jstree-marker">&#160;</div>').hide(); //.appendTo('body');

$(document)
.on('dragover', function (e) {
.on('dragover.vakata.jstree', function (e) {
if (elm) {
$.vakata.dnd._trigger('move', e, { 'helper': $(), 'element': elm, 'data': drg });
}
})
.on('drop', function (e) {
.on('drop.vakata.jstree', function (e) {
if (elm) {
$.vakata.dnd._trigger('stop', e, { 'helper': $(), 'element': elm, 'data': drg });
elm = null;
Expand Down

0 comments on commit c10d304

Please sign in to comment.