diff --git a/src/javascripts/junior.js b/src/javascripts/junior.js index d7d3ed6..edb0246 100644 --- a/src/javascripts/junior.js +++ b/src/javascripts/junior.js @@ -92,6 +92,10 @@ var Jr = Jr || {}; }; setTimeout(next, 1); after = function() { + for (var mainDivs = $('#app-container>div'), i = 0; i < mainDivs.length; i++) { + if (mainDivs.length > 1) + mainDivs.last().remove(); + } fromEl.remove(); toEl.attr('id', 'app-main'); toEl.removeClass('animate-to-view').removeClass(direction); @@ -106,4 +110,4 @@ var Jr = Jr || {}; return Jr.Navigator.renderView($('#app-main'), view); } }); -})(Jr); \ No newline at end of file +})(Jr);