remove useless things, update todo

This commit is contained in:
Quentin Hocdé
2018-02-06 14:25:30 -05:00
parent f00fc2fcd2
commit 93c50ddc9c
3 changed files with 7 additions and 15 deletions

View File

@@ -24,10 +24,8 @@ export default class {
console.log("---- Launch transition 👊 -----");
}
$body.removeClass('has-logo-big');
$html
.removeClass('dom-is-loaded dom-is-animated has-nav-open')
.removeClass('dom-is-loaded dom-is-animated ')
.addClass(`dom-is-loading ${this.overrideClass}`);
}
@@ -54,7 +52,6 @@ export default class {
}
$html.attr('data-template', view.getAttribute('data-template'));
$html.attr('data-theme', view.getAttribute('data-theme'));
setTimeout(() => {

View File

@@ -19,7 +19,7 @@ const EVENT = {
@todo :
- ✅ get data-transition on clicked link -> launch() and add switch(){}
- add goto listener
- add goto listener
- ❌ add newPageReady functon with google analytics send (maybe pjax do that?)
- ✅ add overrideClass system for all transitions
- ✅ add base class manager like old DefaultTransition (dom-is-loaded, dom-is-loading etc..)
@@ -153,8 +153,6 @@ export default class {
oldView.remove();
this.wrapper.innerHTML = view.outerHTML;
this.display(newView);
}
@@ -164,6 +162,7 @@ export default class {
* @return void
*/
display(view) {
this.wrapper.innerHTML = view.outerHTML;
this.transition.displayView(view);

File diff suppressed because one or more lines are too long