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

@ -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) {