2019-03-24 17:15:47 -04:00
|
|
|
|
import { module } from 'modujs';
|
|
|
|
|
|
import modularLoad from 'modularload';
|
|
|
|
|
|
|
|
|
|
|
|
export default class extends module {
|
|
|
|
|
|
constructor(m) {
|
|
|
|
|
|
super(m);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
init() {
|
|
|
|
|
|
const load = new modularLoad({
|
2019-05-23 10:06:45 -04:00
|
|
|
|
enterDelay: 0,
|
|
|
|
|
|
transitions: {
|
|
|
|
|
|
customTransition: {}
|
|
|
|
|
|
}
|
2019-03-24 17:15:47 -04:00
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
load.on('loaded', (transition, oldContainer, newContainer) => {
|
|
|
|
|
|
this.call('destroy', oldContainer, 'app');
|
|
|
|
|
|
this.call('update', newContainer, 'app');
|
2019-05-23 10:06:45 -04:00
|
|
|
|
});
|
2019-03-24 17:15:47 -04:00
|
|
|
|
}
|
|
|
|
|
|
}
|