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

Commit 03c7b55

Browse files
committed
v0.1.17
1 parent 2cb8932 commit 03c7b55

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
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.16",
5+
"version": "0.1.17",
66
"homepage": "https://github.com/vuejs/vue-resource",
77
"license": "MIT",
88
"ignore": [

dist/vue-resource.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* vue-resource v0.1.16
2+
* vue-resource v0.1.17
33
* https://github.com/vuejs/vue-resource
44
* Released under the MIT License.
55
*/
@@ -8,7 +8,7 @@
88
if(typeof exports === 'object' && typeof module === 'object')
99
module.exports = factory();
1010
else if(typeof define === 'function' && define.amd)
11-
define(factory);
11+
define([], factory);
1212
else if(typeof exports === 'object')
1313
exports["VueResource"] = factory();
1414
else
@@ -76,13 +76,13 @@ return /******/ (function(modules) { // webpackBootstrap
7676

7777
$url: {
7878
get: function () {
79-
return this._url || (this._url = _.options(Vue.url, this, this.$options.url));
79+
return _.options(Vue.url, this, this.$options.url);
8080
}
8181
},
8282

8383
$http: {
8484
get: function () {
85-
return this._http || (this._http = _.options(Vue.http, this, this.$options.http));
85+
return _.options(Vue.http, this, this.$options.http);
8686
}
8787
},
8888

@@ -855,7 +855,7 @@ return /******/ (function(modules) { // webpackBootstrap
855855

856856
module.exports = function (_) {
857857

858-
function Resource(url, params, actions) {
858+
function Resource(url, params, actions, options) {
859859

860860
var self = this, resource = {};
861861

@@ -866,7 +866,7 @@ return /******/ (function(modules) { // webpackBootstrap
866866

867867
_.each(actions, function (action, name) {
868868

869-
action = _.extend(true, {url: url, params: params || {}}, action);
869+
action = _.extend(true, {url: url, params: params || {}}, options, action);
870870

871871
resource[name] = function () {
872872
return (self.$http || _.http)(opts(action, arguments));

dist/vue-resource.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)