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 // create public object
var that = new Ox.JQueryElement($(self.options.element || '<div>')) var that = new Ox.JQueryElement($(self.options.element || '<div>'))
.addClass('OxElement') .addClass('OxElement')
.mousedown(mousedown); .on({mousedown: mousedown});
that._leakSelf = function() { that._leakSelf = function() {
return self; return self;
@ -172,7 +172,7 @@ Ox.Element = function(options, self) {
// stop checking for dragpause // stop checking for dragpause
clearTimeout(dragTimeout); clearTimeout(dragTimeout);
// 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
$('.OxElement').off({ $('.OxElement').off({
mouseenter: dragenter, mouseenter: dragenter,