1
0
Fork 0
forked from 0x2620/oxjs

.bind -> .on, .unbind -> .off

This commit is contained in:
rolux 2012-05-28 16:06:22 +02:00
commit 461a237880
22 changed files with 54 additions and 54 deletions

View file

@ -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;
}