var cfg = JSON.parse(src);
print("loaded data");
console.dump(cfg);
-
+ _this.modOrder = cfg.modOrder || '001';
_this.name = cfg.name.replace(/\.bjs/, ''); // BC!
_this.parent = cfg.parent;
+ _this.permname = cfg.permname || '';
_this.title = cfg.title;
_this.items = cfg.items || [];
Base.prototype.save.call(this);
// now write the js file..
var js = this.path.replace(/\.bjs$/, '.js');
- File.write(js, this.toSource());
+ var d = new Date();
+ var js_src = this.toSource();
+ print("TO SOURCE in " + ((new Date()) - d) + "ms");
+ File.write(js, js_src);