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
12
index.js
12
index.js
|
|
@ -175,7 +175,7 @@ Ox.load(function() {
|
|||
} else if (!url.page) {
|
||||
app.$ui.logo
|
||||
.css({cursor: 'pointer'})
|
||||
.bind({
|
||||
.on({
|
||||
click: app.toggle
|
||||
});
|
||||
['label', 'menu', 'switch'].forEach(function(element) {
|
||||
|
|
@ -201,7 +201,7 @@ Ox.load(function() {
|
|||
.animate({opacity: 1}, 500, function() {
|
||||
app.$ui.logo
|
||||
.css({cursor: 'pointer'})
|
||||
.bind({
|
||||
.on({
|
||||
click: app.toggle
|
||||
});
|
||||
});
|
||||
|
|
@ -210,7 +210,7 @@ Ox.load(function() {
|
|||
}, 500);
|
||||
});
|
||||
}
|
||||
Ox.$window.bind({
|
||||
Ox.$window.on({
|
||||
hashchange: app.urlchange
|
||||
});
|
||||
app.state.loaded = true;
|
||||
|
|
@ -241,7 +241,7 @@ Ox.load(function() {
|
|||
callback();
|
||||
}
|
||||
});
|
||||
Ox.$(window).bind({
|
||||
Ox.$(window).on({
|
||||
resize: app.resize
|
||||
});
|
||||
},
|
||||
|
|
@ -407,7 +407,7 @@ Ox.load(function() {
|
|||
paddingBottom: '4px',
|
||||
borderRadius: '6px'
|
||||
})
|
||||
.bind({
|
||||
.on({
|
||||
click: app.toggle
|
||||
});
|
||||
},
|
||||
|
|
@ -491,7 +491,7 @@ Ox.load(function() {
|
|||
.css({
|
||||
width: 224 - Ox.UI.SCROLLBAR_SIZE + 'px'
|
||||
})
|
||||
.bind({
|
||||
.on({
|
||||
click: function(e) {
|
||||
if (!$(this).is('.selected')) {
|
||||
selectItem(item.id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue