aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Minar2012-09-10 13:40:32 -0700
committerMisko Hevery2012-09-11 16:39:46 -0700
commitebbc224e0945b1e431a3052cc2ab1bbaf7ffff11 (patch)
tree2173959addd30a4af1c9e737abddafb12d280c41
parent2c6aa4c300073ef27fcce4c112646985d81a4fe4 (diff)
downloadangular.js-ebbc224e0945b1e431a3052cc2ab1bbaf7ffff11.tar.bz2
fix($resource): fix isDefined -> angular.isDefined
-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 {