From cb075a32409aaa450271ae7729fae5b398f470a1 Mon Sep 17 00:00:00 2001 From: Calen Pennington <cale@edx.org> Date: Mon, 10 Sep 2018 15:09:34 -0400 Subject: [PATCH] fixup! Load all webpack chunks into fragments as correctly-typed resources --- cms/static/js/views/paged_container.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cms/static/js/views/paged_container.js b/cms/static/js/views/paged_container.js index 716f0b53b91..3310bd5a3d3 100644 --- a/cms/static/js/views/paged_container.js +++ b/cms/static/js/views/paged_container.js @@ -106,7 +106,9 @@ define(['jquery', 'underscore', 'common/js/components/utils/view_utils', 'js/vie // Scroll us to the element with a little buffer at the top for context. ViewUtils.setScrollOffset($target, ($(window).height() * 0.10)); } - originalDone(); + if (originalDone) { + originalDone(); + } } self.handleXBlockFragment(fragment, options); } -- GitLab