1
0
mirror of https://github.com/locomotivemtl/locomotive-boilerplate.git synced 2026-01-15 00:55:08 +08:00

TM : adapt innerHTML new to get delete modules event

This commit is contained in:
Quentin Hocdé
2018-11-28 14:10:39 -05:00
parent 74b71db181
commit 79363cd3c6

View File

@@ -185,7 +185,6 @@ export default class {
// requestAnimationFrame(() => {
// requestAnimationFrame(() => {
newView.style.opacity = 1;
this.wrapper.innerHTML = newView.outerHTML;
this.change(oldView, newView);
// });
// });
@@ -204,6 +203,8 @@ export default class {
$scope: $pjaxWrapper
});
this.wrapper.innerHTML = newView.outerHTML;
oldView.remove();
// Fetch any inline script elements.