router updates

This commit is contained in:
Adam Bradley
2015-07-08 02:18:25 -05:00
parent e02df10bd2
commit 9d2570d2e5
3 changed files with 114 additions and 61 deletions

View File

@@ -79,7 +79,7 @@ export class ViewController extends Ion {
this.add(enteringItem);
// notify app of the state change
this.app.stateChange(enteringItem, this);
this.app.stateChange('push', enteringItem);
// start the transition
this.transition(enteringItem, leavingItem, opts, () => {
@@ -115,7 +115,7 @@ export class ViewController extends Ion {
let enteringItem = this.getPrevious(leavingItem);
if (enteringItem) {
// notify app of the state change
this.app.stateChange(enteringItem, this);
this.app.stateChange('pop', enteringItem);
// start the transition
this.transition(enteringItem, leavingItem, opts, () => {
@@ -299,7 +299,7 @@ export class ViewController extends Ion {
leavingItem.didLeave();
// notify app of the state change
this.app.stateChange(enteringItem, this);
this.app.stateChange('pop', enteringItem);
} else {
// cancelled the swipe back, return items to original state