fix call pjax.onSwitch

This commit is contained in:
Quentin Hocdé
2018-02-26 14:21:01 -05:00
parent dac9b3d2ca
commit 58b8b7356e

View File

@@ -131,10 +131,7 @@ export default class {
if(isDebug) {
console.log('---- Next view loaded 👌 -----');
}
this.transition.hideView(oldView, newView);
this.pjax.onSwitch();
this.transition.hideView(oldView, newView);
}
/**
@@ -180,6 +177,8 @@ export default class {
isPjax: true
});
this.pjax.onSwitch();
this.transition.displayView(view);
}