Tasks.js
authorAlan Knowles <alan@akbkhome.com>
Sun, 25 Nov 2012 10:08:18 +0000 (18:08 +0800)
committerAlan Knowles <alan@akbkhome.com>
Sun, 25 Nov 2012 10:08:18 +0000 (18:08 +0800)
Tasks.js

index d54ec4a..30aef90 100644 (file)
--- a/Tasks.js
+++ b/Tasks.js
@@ -87,6 +87,7 @@ Tasks = {
     
     repoProject: function(repo)
     {
+         _this = this;
         var r = new XMLHttpRequest({
             onreadystatechange : function() {
                 print("Got result.");
@@ -99,8 +100,8 @@ Tasks = {
                 
                 //print(JSON.stringify(res,null,4))
                 //print([ res.success , res.data.length ]);
-                _this.currRepo = (res.success && res.data.length) ? currRepores.data[0] : false;
-                
+                _this.commitRepo = (res.success && res.data.length) ? currRepores.data[0] : false;
+                print(JSON.stringify(_this.commit))
                 _this.verifyCommit();
             }