forked from 0x2620/oxjs
.bind -> .on, .unbind -> .off
This commit is contained in:
parent
f45f993f42
commit
461a237880
22 changed files with 54 additions and 54 deletions
|
|
@ -17,7 +17,7 @@ Ox.Layer = function(options, self) {
|
|||
})
|
||||
.options(options || {})
|
||||
.addClass('OxLayer Ox' + Ox.toTitleCase(self.options.type) + 'Layer')
|
||||
.bind(self.options.type == 'dialog' ? {
|
||||
.on(self.options.type == 'dialog' ? {
|
||||
mousedown: mousedown
|
||||
} : {
|
||||
click: click
|
||||
|
|
@ -41,7 +41,7 @@ Ox.Layer = function(options, self) {
|
|||
@*/
|
||||
that.hide = function() {
|
||||
if (self.options.type == 'dialog') {
|
||||
Ox.UI.$window.unbind({mouseup: mouseup});
|
||||
Ox.$window.off({mouseup: mouseup});
|
||||
}
|
||||
that.remove();
|
||||
};
|
||||
|
|
@ -52,9 +52,9 @@ Ox.Layer = function(options, self) {
|
|||
@*/
|
||||
that.show = function() {
|
||||
if (self.options.type == 'dialog') {
|
||||
Ox.UI.$window.bind({mouseup: mouseup});
|
||||
Ox.$window.on({mouseup: mouseup});
|
||||
}
|
||||
that.appendTo(Ox.UI.$body);
|
||||
that.appendTo(Ox.$body);
|
||||
return that;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue