mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
fix($resource): fix isDefined -> angular.isDefined
This commit is contained in:
parent
2c6aa4c300
commit
ebbc224e09
1 changed files with 1 additions and 1 deletions
|
|
@ -286,7 +286,7 @@ angular.module('ngResource', ['ng']).
|
|||
params = params || {};
|
||||
forEach(this.urlParams, function(_, urlParam){
|
||||
val = params.hasOwnProperty(urlParam) ? params[urlParam] : self.defaults[urlParam];
|
||||
if (isDefined(val) && val !== null) {
|
||||
if (angular.isDefined(val) && val !== null) {
|
||||
encodedVal = encodeUriSegment(val);
|
||||
url = url.replace(new RegExp(":" + urlParam + "(\\W)", "g"), encodedVal + "$1");
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue