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
|
// 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,
|
||||||
|
|
Loading…
Reference in a new issue