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

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