This reverts commit 67177ac72d.
The original PR cause a breakage on production due to webpack building two different
copies of the asset_index.js bundle. However, it is unclear whether that was a
transitory issue or not. This commit restores the original PR to validate whether
the problem is reproducible.
12 lines
269 B
JavaScript
12 lines
269 B
JavaScript
(function(define) {
|
|
'use strict';
|
|
|
|
define(
|
|
['js/models/course'],
|
|
function(ContextCourse) {
|
|
window.course = new ContextCourse(window.pageFactoryArguments.ContextCourse[0]);
|
|
}
|
|
);
|
|
}).call(this, define || RequireJS.define);
|
|
|