Sample/Window.js
authorAlan Knowles <alan@akbkhome.com>
Tue, 25 May 2010 04:45:11 +0000 (12:45 +0800)
committerAlan Knowles <alan@akbkhome.com>
Tue, 25 May 2010 04:45:11 +0000 (12:45 +0800)
Sample/Window.js

index 2fdbcf5..35fee02 100644 (file)
@@ -74,9 +74,10 @@ Window=new XObject({
                                             label : "New _Project",
                                             listeners : {
                                                 "activate":function (self) {
+                                                         var _this = this;
                                                        this.get('/EditProject').show({
                                                            success : function(pr) {
-                                                                    this.get('/LeftProjectTree').get('combo').setValue(pr.fn);
+                                                                    _this.get('/LeftProjectTree').get('combo').setValue(pr.fn);
                                                            }
                                                        });
                                                 }