diff options
| author | Igor Minar | 2012-09-10 13:40:32 -0700 |
|---|---|---|
| committer | Misko Hevery | 2012-09-11 16:39:46 -0700 |
| commit | ebbc224e0945b1e431a3052cc2ab1bbaf7ffff11 (patch) | |
| tree | 2173959addd30a4af1c9e737abddafb12d280c41 | |
| parent | 2c6aa4c300073ef27fcce4c112646985d81a4fe4 (diff) | |
| download | angular.js-ebbc224e0945b1e431a3052cc2ab1bbaf7ffff11.tar.bz2 | |
fix($resource): fix isDefined -> angular.isDefined
| -rw-r--r-- | src/ngResource/resource.js | 2 |
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 { |
