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

Commit

Permalink
Merge branch 'release/0.9.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
steffans committed Jul 1, 2016
2 parents 42ae6cc + 97a3125 commit b9c195d
Show file tree
Hide file tree
Showing 7 changed files with 53 additions and 53 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vue-resource",
"main": "dist/vue-resource.js",
"description": "A web request service for Vue.js",
"version": "0.9.1",
"version": "0.9.2",
"homepage": "https://github.com/vuejs/vue-resource",
"license": "MIT",
"ignore": [
Expand Down
24 changes: 12 additions & 12 deletions dist/vue-resource.common.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* vue-resource v0.9.1
* vue-resource v0.9.2
* https://github.com/vuejs/vue-resource
* Released under the MIT License.
*/
Expand Down Expand Up @@ -1022,24 +1022,24 @@ function Client (context) {
}

function next(response) {
when(response, function (response) {

if (isFunction(response)) {
if (isFunction(response)) {

resHandlers.unshift(response);
} else if (isObject(response)) {
resHandlers.unshift(response);
} else if (isObject(response)) {

resHandlers.forEach(function (handler) {
handler.call(context, response);
resHandlers.forEach(function (handler) {
response = when(response, function (response) {
return handler.call(context, response) || response;
});
});

resolve(response);
when(response, resolve);

return;
}
return;
}

exec();
});
exec();
}

exec();
Expand Down
24 changes: 12 additions & 12 deletions dist/vue-resource.es2015.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* vue-resource v0.9.1
* vue-resource v0.9.2
* https://github.com/vuejs/vue-resource
* Released under the MIT License.
*/
Expand Down Expand Up @@ -1020,24 +1020,24 @@ function Client (context) {
}

function next(response) {
when(response, function (response) {

if (isFunction(response)) {
if (isFunction(response)) {

resHandlers.unshift(response);
} else if (isObject(response)) {
resHandlers.unshift(response);
} else if (isObject(response)) {

resHandlers.forEach(function (handler) {
handler.call(context, response);
resHandlers.forEach(function (handler) {
response = when(response, function (response) {
return handler.call(context, response) || response;
});
});

resolve(response);
when(response, resolve);

return;
}
return;
}

exec();
});
exec();
}

exec();
Expand Down
24 changes: 12 additions & 12 deletions dist/vue-resource.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* vue-resource v0.9.1
* vue-resource v0.9.2
* https://github.com/vuejs/vue-resource
* Released under the MIT License.
*/
Expand Down Expand Up @@ -1026,24 +1026,24 @@
}

function next(response) {
when(response, function (response) {

if (isFunction(response)) {
if (isFunction(response)) {

resHandlers.unshift(response);
} else if (isObject(response)) {
resHandlers.unshift(response);
} else if (isObject(response)) {

resHandlers.forEach(function (handler) {
handler.call(context, response);
resHandlers.forEach(function (handler) {
response = when(response, function (response) {
return handler.call(context, response) || response;
});
});

resolve(response);
when(response, resolve);

return;
}
return;
}

exec();
});
exec();
}

exec();
Expand Down
4 changes: 2 additions & 2 deletions dist/vue-resource.min.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-resource",
"version": "0.9.1",
"version": "0.9.2",
"description": "A web request service for Vue.js",
"main": "dist/vue-resource.common.js",
"jsnext:main": "dist/vue-resource.es2015.js",
Expand All @@ -24,7 +24,7 @@
},
"homepage": "https://github.com/vuejs/vue-resource#readme",
"devDependencies": {
"babel-core": "^6.9.1",
"babel-core": "^6.10.4",
"babel-loader": "^6.2.4",
"babel-plugin-transform-runtime": "^6.9.0",
"babel-preset-es2015-loose": "^7.0.0",
Expand All @@ -34,7 +34,7 @@
"rollup": "^0.33.0",
"rollup-plugin-babel": "^2.6.1",
"uglify-js": "^2.6.4",
"vue": "^1.0.25",
"vue": "^1.0.26",
"webpack": "^1.13.1"
}
}
22 changes: 11 additions & 11 deletions src/http/client/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,25 +30,25 @@ export default function (context) {
}

function next(response) {
when(response, (response) => {

if (isFunction(response)) {
if (isFunction(response)) {

resHandlers.unshift(response);
resHandlers.unshift(response);

} else if (isObject(response)) {
} else if (isObject(response)) {

resHandlers.forEach((handler) => {
handler.call(context, response);
resHandlers.forEach((handler) => {
response = when(response, (response) => {
return handler.call(context, response) || response;
});
});

resolve(response);
when(response, resolve);

return;
}
return;
}

exec();
});
exec();
}

exec();
Expand Down

0 comments on commit b9c195d

Please sign in to comment.