minor changes
This commit is contained in:
parent
e5652b4db1
commit
69d125bc8e
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue