Skip to content

Commit

Permalink
small var refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
deanlandolt committed Jul 29, 2010
1 parent b799660 commit c5ad7e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/http-client.js
Expand Up @@ -17,9 +17,9 @@ exports.request = function(request){
for(var i in request.headers){
xhr.setRequestHeader(i, request.headers[i]);
}
var deferred = defer();
var response;
var lastUpdate;
var deferred = defer(),
response,
lastUpdate;
xhr.onreadystatechange = function(){
if(xhr.readyState == 4 || xhr.readyState == 3){
if(!response){
Expand Down

0 comments on commit c5ad7e6

Please sign in to comment.