in index.js, use .one(), not .bindOnce()
This commit is contained in:
parent
53cb716130
commit
d27a3ffe0f
1 changed files with 10 additions and 7 deletions
17
index.js
17
index.js
|
@ -226,7 +226,7 @@ Ox.load(function() {
|
||||||
app.$ui.screen = app.ui.screen();
|
app.$ui.screen = app.ui.screen();
|
||||||
app.$ui.loading = app.ui.loading();
|
app.$ui.loading = app.ui.loading();
|
||||||
app.$ui.logo = app.ui.logo()
|
app.$ui.logo = app.ui.logo()
|
||||||
.bindOnce({
|
.one({
|
||||||
load: function() {
|
load: function() {
|
||||||
Ox.$('body')
|
Ox.$('body')
|
||||||
.append(app.$ui.screen)
|
.append(app.$ui.screen)
|
||||||
|
@ -582,7 +582,8 @@ Ox.load(function() {
|
||||||
if (current.page != app.history.page) {
|
if (current.page != app.history.page) {
|
||||||
app.$ui.panel.select(current.page);
|
app.$ui.panel.select(current.page);
|
||||||
}
|
}
|
||||||
if (current.item != app.history.item) {
|
//if (current.item != app.history.item) {
|
||||||
|
if (current.item) {
|
||||||
Ox.print('setting selected!')
|
Ox.print('setting selected!')
|
||||||
app.$ui[current.page].options({selected: current.item});
|
app.$ui[current.page].options({selected: current.item});
|
||||||
}
|
}
|
||||||
|
@ -592,11 +593,13 @@ Ox.load(function() {
|
||||||
app.$ui[current.page].options({selected: current.item});
|
app.$ui[current.page].options({selected: current.item});
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
(!current.page || !app.history.page ? app.animate : Ox.void)(function() {
|
(!current.page || !app.history.page ? app.animate : Ox.void)(
|
||||||
//app.url.replace(url);
|
function() {
|
||||||
app.history = current;
|
//app.url.replace(url);
|
||||||
Ox.print('CALLBACK, HISTORY', app.history)
|
app.history = current;
|
||||||
});
|
Ox.print('CALLBACK, HISTORY', app.history)
|
||||||
|
}
|
||||||
|
);
|
||||||
},
|
},
|
||||||
user: Ox.localStorage('OxJS')
|
user: Ox.localStorage('OxJS')
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue