Commit 52450e98 by Brian Jacobel Committed by GitHub

Merge pull request #12731 from edx/bjacobel/requirejs-sync

Fixes to #12266
parents ff242a3e 17a19d21
......@@ -104,7 +104,11 @@ source, template_path = Loader(engine).load_template_source(path)
<script type="text/javascript">
(function (require) {
% if settings.REQUIRE_DEBUG:
require_module(module_name, class_name);
(function (require) {
require(['${module_name | n, js_escaped_string}'], function (${class_name | n, decode.utf8}) {
${caller.body() | n, decode.utf8}
});
}).call(this, require || RequireJS.require);
% else:
## The "raw" parameter is specified to avoid the URL from being further maninpulated by
## static_replace calls (as woudl happen if require_module is used within courseware).
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment