X-Git-Url: http://git.roojs.org/?p=app.Builder.js;a=blobdiff_plain;f=Builder4%2FDialogNewComponent.js;fp=Builder4%2FDialogNewComponent.js;h=c6a99dbf84be0a130861b7212ee276fa74d1135e;hp=6414aba9199220ea72409d195af5393cd11a34ac;hb=2357117f2dbfda5d1282c5cc730534781e244d7e;hpb=0d1fa455e0b79452e0d74c1a280b3a23e3432f74 diff --git a/Builder4/DialogNewComponent.js b/Builder4/DialogNewComponent.js index 6414aba91..c6a99dbf8 100644 --- a/Builder4/DialogNewComponent.js +++ b/Builder4/DialogNewComponent.js @@ -16,7 +16,7 @@ DialogNewComponent=new XObject({ this.el.hide(); return true; }, - response : (self, response_id) => { + response : (self, response_id) => { if (response_id < 1) { // cancel! this.el.hide(); @@ -64,7 +64,7 @@ DialogNewComponent=new XObject({ // what about .js ? - if (GLib.FileUtil.test(_this.file.name + ".bjs", GLib.FileTest.EXISTS)) { + if (GLib.FileUtils.test(_this.file.name + ".bjs", GLib.FileTest.EXISTS)) { StandardErrorDialog.show( "That file already exists" ); @@ -103,19 +103,10 @@ DialogNewComponent=new XObject({ { this.project = c.project; - if (!this.el) { + //if (!this.el) { //this.init(); - } + //} - this.def = { - name : '' , - title : '' , - region : '' , - parent: '', - // disable: '', - modOrder : '0', - permname : '' - }; _this.name.el.set_text(c.name); _this.title.el.set_text(c.title); _this.parent.el.set_text(c.parent);