-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathboot_new.js
40 lines (36 loc) · 1.09 KB
/
boot_new.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
var __$_module_namespace = null;
(function () {
try {
var mdd, mns, md;
function foreachNewInstance(f) {
for (var i = 0; i < __$_new_instances.length; i++) {
f(__$_new_instances[i]);
}
}
foreachNewInstance(function (ni) {
if (ni.name === 'net.lshift.synchrotron.module') {
var v = eval('(function () {' + ni.bodyText +
'; return [ModuleDefinitionDirectory,' +
'ModuleNamespace,' +
'ModuleDefinition];})()');
mdd = v[0];
mns = v[1];
md = v[2];
}
});
var defs = new mdd();
foreachNewInstance(function (ni) {
if (ni.objectType === 'moduleDefinition') {
var modDef = md.fromJsonObject(ni);
defs.registerModuleDefinition(modDef);
}
});
__$_module_namespace = new mns(defs);
__$_module_namespace.registerModule("net.lshift.synchrotron.Boot",
{module_namespace: __$_module_namespace});
__$_module_namespace.instantiateModule(__$_goal);
__$_module_namespace.modules["net.lshift.synchrotron.ObjectMemory"].saveImage();
} catch (e) {
alert(uneval(e));
}
})();