Builder/EditProject.js
authorAlan Knowles <alan@akbkhome.com>
Fri, 30 Apr 2010 07:47:21 +0000 (15:47 +0800)
committerAlan Knowles <alan@akbkhome.com>
Fri, 30 Apr 2010 07:47:21 +0000 (15:47 +0800)
Builder/EditProject.js

index 785cfc0..8e540bc 100755 (executable)
@@ -43,13 +43,14 @@ EditProject = new XObject({
             
             c = c || { name : '' , xtype : '' };
             this.project  = c;
+            if (!this.el) {
+                this.init();
+            }
             var _this = this;
             [ 'xtype' , 'name' ].forEach(function(k) {
                 _this.get(k).setValue(typeof(c[k]) == 'undefined' ? '' : c[k]);
             });
-            if (!this.el) {
-                this.init();
-            }
+            
             this.el.show_all();
             this.success = c.success;