Make XBlockToXModuleShim use json-init-args to record the XModule constructor to shim to

This commit is contained in:
Calen Pennington
2015-03-27 14:03:46 -04:00
parent 1f17538d42
commit b50876fc32
7 changed files with 22 additions and 11 deletions

View File

@@ -32,7 +32,7 @@
}
function initArgs(element) {
var initargs = $('.xblock_json_init_args', element).text();
var initargs = $(element).children('.xblock-json-init-args').remove().text();
return initargs ? JSON.parse(initargs) : {};
}