dont blow the stack, fixes #853

This commit is contained in:
j 2012-06-16 18:10:19 +02:00
parent 484cc7120d
commit 8c7bf418ec

View file

@ -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
}); });