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
|
|
@ -105,7 +105,7 @@ Ox.load.UI = function(options, callback) {
|
|||
width: '32px',
|
||||
height: '32px'
|
||||
}, css))
|
||||
.bind({
|
||||
.on({
|
||||
mousedown: function(e) {
|
||||
e.preventDefault();
|
||||
}
|
||||
|
|
@ -125,7 +125,7 @@ Ox.load.UI = function(options, callback) {
|
|||
width: '32px',
|
||||
height: '32px'
|
||||
}, css))
|
||||
.bind({
|
||||
.on({
|
||||
mousedown: function(e) {
|
||||
e.preventDefault()
|
||||
}
|
||||
|
|
@ -191,7 +191,7 @@ Ox.load.UI = function(options, callback) {
|
|||
border: 0,
|
||||
cursor: 'pointer'
|
||||
}, css))
|
||||
.bind({
|
||||
.on({
|
||||
mousedown: function(e) {
|
||||
e.preventDefault();
|
||||
}
|
||||
|
|
@ -269,7 +269,7 @@ Ox.load.UI = function(options, callback) {
|
|||
Ox.$head = Ox.UI.$head = $('head');
|
||||
Ox.$window = Ox.UI.$window = $(window);
|
||||
// fixme: is this the right place to do this?
|
||||
$.browser.mozilla && Ox.$document.bind('dragstart', function() {
|
||||
$.browser.mozilla && Ox.$document.on('dragstart', function() {
|
||||
return false;
|
||||
});
|
||||
callbacks.forEach(function(callback) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue