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
that.triggerEvent('dragstart', e);
$('*').on({
$('.OxElement').on({
mouseenter: dragenter,
mouseleave: dragleave
});
@ -178,7 +178,7 @@ Ox.Element = function(options, self) {
// stop checking for drag
Ox.UI.$window.off('mousemove', mousemove);
// stop checking for dragenter and dragleave
$('*').off({
$('.OxElement').off({
mouseenter: dragenter,
mouseleave: dragleave
});