correcting the repl to use the loadAndInvoke method.
This commit is contained in:
parent
8e0bf9d2b3
commit
a371c3ffcf
|
@ -65,18 +65,14 @@ jQuery(document).ready(function() {
|
||||||
// We then want to initialize the language module.
|
// We then want to initialize the language module.
|
||||||
var initializeLanguage = function(afterLanguageInitialization) {
|
var initializeLanguage = function(afterLanguageInitialization) {
|
||||||
// Load up the language.
|
// Load up the language.
|
||||||
M.modules['whalesong/wescheme/lang/semantics.rkt'] =
|
M.loadAndInvoke('whalesong/wescheme/lang/semantics.rkt',
|
||||||
M.installedModules['whalesong/wescheme/lang/semantics.rkt']();
|
function() {
|
||||||
|
|
||||||
var semanticsModule =
|
var semanticsModule =
|
||||||
M.modules['whalesong/wescheme/lang/semantics.rkt'];
|
M.modules['whalesong/wescheme/lang/semantics.rkt'];
|
||||||
semanticsModule.invoke(
|
|
||||||
M,
|
|
||||||
function() {
|
|
||||||
M.params.currentNamespace = semanticsModule.getExports();
|
M.params.currentNamespace = semanticsModule.getExports();
|
||||||
afterLanguageInitialization();
|
afterLanguageInitialization();
|
||||||
},
|
},
|
||||||
function(M, err) {
|
function(err) {
|
||||||
// Nothing should work if we can't get this to work.
|
// Nothing should work if we can't get this to work.
|
||||||
alert("uh oh!: language could not be loaded.");
|
alert("uh oh!: language could not be loaded.");
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user