diff options
Diffstat (limited to 'lib/webcals/request/abstract.js')
-rw-r--r-- | lib/webcals/request/abstract.js | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/webcals/request/abstract.js b/lib/webcals/request/abstract.js index fe47de9..ac0ceb5 100644 --- a/lib/webcals/request/abstract.js +++ b/lib/webcals/request/abstract.js @@ -25,16 +25,14 @@ this[key] = options[key]; } } + + this.xhr = new XHR({ + url: this.url + }); } Abstract.prototype = { - _createXhr: function() { - return new XHR({ - url: this.url - }); - }, - _createPayload: function() { return ''; }, @@ -48,7 +46,7 @@ */ send: function(callback) { var self = this; - var req = this.xhr = this._createXhr(); + var req = this.xhr; req.data = this._createPayload(); // in the future we may stream data somehow |