minor changes

This commit is contained in:
rolux 2012-06-26 16:33:26 +02:00
parent e5652b4db1
commit 69d125bc8e

View file

@ -91,7 +91,7 @@ Ox.Element = function(options, self) {
// create public object
var that = new Ox.JQueryElement($(self.options.element || '<div>'))
.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,