...
 
Commits (1)
......@@ -218,14 +218,10 @@ function getPage(page) {
switch(ext) {
case '.SSJS':
if (ext === '.SSJS' && p.search(/\.xjs\.ssjs$/i) >= 0) break;
(function () {
load(p, true);
})();
js.exec(p, new function () {});
break;
case '.XJS':
(function () {
load(xjs_compile(p), true);
})();
js.exec(xjs_compile(p), new function () {});
break;
case '.HTML':
var f = new File(p);
......
......@@ -52,14 +52,10 @@ function getSidebarModule(module) {
switch (ext) {
case '.SSJS':
if (ext === '.SSJS' && module.search(/\.xjs\.ssjs$/i) >= 0) break;
(function () {
load(module, true);
})();
js.exec(module, new function () {});
break;
case '.XJS':
(function () {
load(xjs_compile(module), true);
})();
js.exec(xjs_compile(module), new function () {});
break;
case '.HTML':
ret = getFileContents(module);
......