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