diff --git a/src/components/viewContainer.js b/src/components/viewContainer.js index 4e11ebc7ba..9d64130cdb 100644 --- a/src/components/viewContainer.js +++ b/src/components/viewContainer.js @@ -54,8 +54,8 @@ import 'css!components/viewManager/viewContainer'; if (currentPage) { if (newViewInfo.hasScript && window.$) { - view = $(view).appendTo(mainAnimatedPages)[0]; mainAnimatedPages.removeChild(currentPage); + view = $(view).appendTo(mainAnimatedPages)[0]; } else { mainAnimatedPages.replaceChild(view, currentPage); }