Make require_module_async call require_module

This commit is contained in:
Brian Jacobel
2016-05-27 16:08:06 -04:00
parent c281586a29
commit 2e4ad45bb0

View File

@@ -94,9 +94,7 @@ source, template_path = Loader(engine).load_template_source(path)
<script type="text/javascript">
(function (require) {
% if settings.REQUIRE_DEBUG:
require(['${module_name | n, js_escaped_string}'], function (${class_name | n, decode.utf8}) {
${caller.body() | n, decode.utf8}
});
require_module(module_name, class_name);
% 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).