Skip to content
This repository was archived by the owner on Dec 1, 2023. It is now read-only.

Commit c0642f1

Browse files
committed
v0.1.8
1 parent d8aefcd commit c0642f1

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vue-resource",
33
"main": "dist/vue-resource.js",
44
"description": "A web request service for Vue.js",
5-
"version": "0.1.7",
5+
"version": "0.1.8",
66
"homepage": "https://github.com/vuejs/vue-resource",
77
"license": "MIT",
88
"ignore": [

dist/vue-resource.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -364,13 +364,15 @@ return /******/ (function(modules) { // webpackBootstrap
364364
options.data = '';
365365
}
366366

367-
promise = (options.method.toLowerCase() == 'jsonp' ? jsonp : xhr).call(this, this.$url || Vue.url, options).then(transformResponse, transformResponse);
367+
promise = (options.method.toLowerCase() == 'jsonp' ? jsonp : xhr).call(this, this.$url || Vue.url, options);
368+
369+
promise.then(transformResponse, transformResponse);
368370

369371
promise.success = function (fn) {
370372

371373
promise.then(function (response) {
372374
fn.call(self, response.data, response.status, response);
373-
});
375+
}, function () {});
374376

375377
return promise;
376378
};
@@ -518,7 +520,6 @@ return /******/ (function(modules) { // webpackBootstrap
518520
response.data = response.responseText;
519521
}
520522

521-
return response;
522523
}
523524

524525
Http.options = {

dist/vue-resource.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-resource",
3-
"version": "0.1.7",
3+
"version": "0.1.8",
44
"description": "A web request service for Vue.js",
55
"main": "src/index.js",
66
"scripts": {

0 commit comments

Comments
 (0)