dont blow the stack, fixes #853
This commit is contained in:
parent
484cc7120d
commit
8c7bf418ec
1 changed files with 2 additions and 2 deletions
|
@ -161,7 +161,7 @@ Ox.Element = function(options, self) {
|
||||||
});
|
});
|
||||||
// trigger dragstart, set up drag events
|
// trigger dragstart, set up drag events
|
||||||
that.triggerEvent('dragstart', e);
|
that.triggerEvent('dragstart', e);
|
||||||
$('*').on({
|
$('.OxElement').on({
|
||||||
mouseenter: dragenter,
|
mouseenter: dragenter,
|
||||||
mouseleave: dragleave
|
mouseleave: dragleave
|
||||||
});
|
});
|
||||||
|
@ -178,7 +178,7 @@ Ox.Element = function(options, self) {
|
||||||
// stop checking for drag
|
// stop checking for drag
|
||||||
Ox.UI.$window.off('mousemove', mousemove);
|
Ox.UI.$window.off('mousemove', mousemove);
|
||||||
// stop checking for dragenter and dragleave
|
// stop checking for dragenter and dragleave
|
||||||
$('*').off({
|
$('.OxElement').off({
|
||||||
mouseenter: dragenter,
|
mouseenter: dragenter,
|
||||||
mouseleave: dragleave
|
mouseleave: dragleave
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue