delete modules before removing the old container

This commit is contained in:
Quentin Hocdé
2017-10-11 10:49:40 -04:00
parent 6d779b55c5
commit 30063039a3
4 changed files with 21 additions and 11 deletions

View File

@@ -5,6 +5,7 @@ const $document = $(document);
const $window = $(window);
const $html = $(document.documentElement).removeClass('has-no-js').addClass('has-js');
const $body = $(document.body);
const $barba = $('#js-barba-wrapper');
const isDebug = !!$html.data('debug');