Files
edx-platform/lms/static/js/courseware.js
Michael Terry a34c8c8233 Drop remaining coffee use
This basically commits the transpiled CoffeeScript JS (with minor
cleanup) and removes coffee build support.

A tiny amount of support for xblocks exists, because external users
may have xblocks with coffee. But no coffee in our tree anyway.
2018-04-13 14:10:40 -04:00

39 lines
932 B
JavaScript

// Once generated by CoffeeScript 1.9.3, but now lives as pure JS
/* eslint-disable */
(function() {
this.Courseware = (function() {
Courseware.prefix = '';
function Courseware() {
Logger.bind();
this.render();
}
Courseware.start = function() {
return new Courseware;
};
Courseware.prototype.render = function() {
XBlock.initializeBlocks($('.course-content'));
return $('.course-content .histogram').each(function() {
var error, histg, id;
id = $(this).attr('id').replace(/histogram_/, '');
try {
histg = new Histogram(id, $(this).data('histogram'));
} catch (_error) {
error = _error;
histg = error;
if (typeof console !== "undefined" && console !== null) {
console.log(error);
}
}
return histg;
});
};
return Courseware;
})();
}).call(this);