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);
" Pman.register({",
" modKey : '" +modkey+"',",
" module : " + this.name + ",",
+ " moduleName : '" + this.name + "',",
" region : '" + this.region +"',",
" parent : " + (this.parent || 'false') + ",",
" name : " + JSON.stringify(this.title || "unnamed module") + ",",