Skip to content
This repository has been archived by the owner on Sep 16, 2022. It is now read-only.

Commit

Permalink
keep xmlHttp as property
Browse files Browse the repository at this point in the history
  • Loading branch information
mborho committed Nov 3, 2012
1 parent a6a50fe commit 32f03fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qml/klippr/js/kippt.js
Expand Up @@ -62,6 +62,7 @@ var Connector = function(username, token) {
this.username = username
this.token = token
this.endpoint = "https://kippt.com";
this.xmlHttp = new XMLHttpRequest();

}

Expand Down Expand Up @@ -124,7 +125,7 @@ Connector.prototype.doRequest = function(options) {
var url = options.url,
method = (options.method) ? options.method :"GET",
data = (options.data) ? JSON.stringify(options.data) : null,
xmlHttp = new XMLHttpRequest();
xmlHttp = this.xmlHttp;
// var start = Date.now();
// if(data) console.log(data);
if (xmlHttp) {
Expand Down

0 comments on commit 32f03fe

Please sign in to comment.