diff options
| author | Ken Sheedlo | 2013-08-09 11:14:37 -0700 | 
|---|---|---|
| committer | Igor Minar | 2013-08-09 14:12:04 -0700 | 
| commit | 45dc9ee7b4a1e004f9fb7edde41d4805d1402ffa (patch) | |
| tree | a89e5e4eb46c156a7593901a61eb332595e4be96 /src/ngResource/resource.js | |
| parent | f078762d48d0d5d9796dcdf2cb0241198677582c (diff) | |
| download | angular.js-45dc9ee7b4a1e004f9fb7edde41d4805d1402ffa.tar.bz2 | |
style(minerr): prefer component name as namespace
Closes #3527
Diffstat (limited to 'src/ngResource/resource.js')
| -rw-r--r-- | src/ngResource/resource.js | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/src/ngResource/resource.js b/src/ngResource/resource.js index 003b41f1..57da8f09 100644 --- a/src/ngResource/resource.js +++ b/src/ngResource/resource.js @@ -1,6 +1,6 @@  'use strict'; -var ngResourceMinErr = angular.$$minErr('ngResource'); +var $resourceMinErr = angular.$$minErr('$resource');  /**   * @ngdoc overview @@ -449,7 +449,7 @@ angular.module('ngResource', ['ng']).              break;            case 0: break;            default: -            throw ngResourceMinErr('badargs', +            throw $resourceMinErr('badargs',                "Expected up to 4 arguments [params, data, success, error], got {0} arguments", arguments.length);            } @@ -474,8 +474,8 @@ angular.module('ngResource', ['ng']).              if (data) {                if ( angular.isArray(data) != !!action.isArray ) { -                throw ngResourceMinErr('badcfg', 'Error in resource configuration. Expected response' + -                  ' to contain an {0} but got an {1}',  +                throw $resourceMinErr('badcfg', 'Error in resource configuration. Expected response' + +                  ' to contain an {0} but got an {1}',                    action.isArray?'array':'object', angular.isArray(data)?'array':'object');                }                if (action.isArray) { | 
