Commit 2e4ad45b by Brian Jacobel

Make require_module_async call require_module

parent c281586a
...@@ -94,9 +94,7 @@ source, template_path = Loader(engine).load_template_source(path) ...@@ -94,9 +94,7 @@ source, template_path = Loader(engine).load_template_source(path)
<script type="text/javascript"> <script type="text/javascript">
(function (require) { (function (require) {
% if settings.REQUIRE_DEBUG: % if settings.REQUIRE_DEBUG:
require(['${module_name | n, js_escaped_string}'], function (${class_name | n, decode.utf8}) { require_module(module_name, class_name);
${caller.body() | n, decode.utf8}
});
% else: % else:
## The "raw" parameter is specified to avoid the URL from being further maninpulated by ## 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). ## 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