aboutsummaryrefslogtreecommitdiffstats
path: root/src/ngResource/resource.js
diff options
context:
space:
mode:
authorIgor Minar2012-09-10 13:40:32 -0700
committerIgor Minar2012-09-10 14:49:22 -0700
commit2a4a8226d1c7dc9d6a86a3429144c065c8f01c89 (patch)
tree685caab0c48ebc1a9bc095d7b7652ea58bc7822f /src/ngResource/resource.js
parentc81d8176cc55cd15acae05259ead73f90a01f0b7 (diff)
downloadangular.js-2a4a8226d1c7dc9d6a86a3429144c065c8f01c89.tar.bz2
fix($resource): fix isDefined -> angular.isDefined
Diffstat (limited to 'src/ngResource/resource.js')
-rw-r--r--src/ngResource/resource.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ngResource/resource.js b/src/ngResource/resource.js
index 0a40cedd..6d101111 100644
--- a/src/ngResource/resource.js
+++ b/src/ngResource/resource.js
@@ -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 {