Start adding modularjs & modularload, start updating readme, update html files, change jquery cdn, remove IE from babelrc

This commit is contained in:
Antoine Boulanger
2019-03-24 17:15:47 -04:00
parent 2b176132d3
commit 88aa667090
15 changed files with 1544 additions and 294 deletions

View File

@@ -0,0 +1,22 @@
import { module } from 'modujs';
import modularLoad from 'modularload';
export default class extends module {
constructor(m) {
super(m);
}
init() {
const load = new modularLoad({
enterDelay: 0
});
load.on('loaded', (transition, oldContainer, newContainer) => {
this.call('destroy', oldContainer, 'app');
})
load.on('ready', (transition, newContainer) => {
this.call('update', newContainer, 'app');
})
}
}