Builder/DialogNewComponent.js
authorAlan Knowles <alan@akbkhome.com>
Fri, 30 Apr 2010 08:37:18 +0000 (16:37 +0800)
committerAlan Knowles <alan@akbkhome.com>
Fri, 30 Apr 2010 08:37:18 +0000 (16:37 +0800)
Builder/DialogNewComponent.js

index 4999ae6..d58f134 100755 (executable)
@@ -143,7 +143,10 @@ DialogNewComponent = new XObject({
                 
                 var _this = this;
                 var nf = _this.project.create(dir + '/' + xidns + '.bjs');
-                this.success(_this.project, nf);
+                if (DialogNewComponent.success) {
+                    DialogNewComponent.success(_this.project, nf);
+                }
+                
                 //tmpl.copyTo(dir + '/' + xidns + '.bjs', function() {
                 //    tmpl.setNSID(xidns);
                 ///    _this.project.addFile(tmpl);