diff --git a/source/Ox.UI/js/Core/Element.js b/source/Ox.UI/js/Core/Element.js index 64bc956b..ec8d7bc6 100644 --- a/source/Ox.UI/js/Core/Element.js +++ b/source/Ox.UI/js/Core/Element.js @@ -91,7 +91,7 @@ Ox.Element = function(options, self) { // create public object var that = new Ox.JQueryElement($(self.options.element || '
')) .addClass('OxElement') - .mousedown(mousedown); + .on({mousedown: mousedown}); that._leakSelf = function() { return self; @@ -172,7 +172,7 @@ Ox.Element = function(options, self) { // stop checking for dragpause clearTimeout(dragTimeout); // stop checking for drag - Ox.UI.$window.off('mousemove', mousemove); + Ox.UI.$window.off({mousemove: mousemove}); // stop checking for dragenter and dragleave $('.OxElement').off({ mouseenter: dragenter,