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