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 */
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 ) ) ;
0 commit comments