From 45dc9ee7b4a1e004f9fb7edde41d4805d1402ffa Mon Sep 17 00:00:00 2001 From: Ken Sheedlo Date: Fri, 9 Aug 2013 11:14:37 -0700 Subject: style(minerr): prefer component name as namespace Closes #3527 --- src/ngResource/resource.js | 8 ++++---- src/ngSanitize/sanitize.js | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src') 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) { diff --git a/src/ngSanitize/sanitize.js b/src/ngSanitize/sanitize.js index 70932899..8220b1f5 100644 --- a/src/ngSanitize/sanitize.js +++ b/src/ngSanitize/sanitize.js @@ -1,6 +1,6 @@ 'use strict'; -var ngSanitizeMinErr = angular.$$minErr('ngSanitize'); +var $sanitizeMinErr = angular.$$minErr('$sanitize'); /** * @ngdoc overview @@ -274,7 +274,7 @@ function htmlParser( html, handler ) { } if ( html == last ) { - throw ngSanitizeMinErr('badparse', "The sanitizer was unable to parse the following block of html: {0}", html); + throw $sanitizeMinErr('badparse', "The sanitizer was unable to parse the following block of html: {0}", html); } last = html; } -- cgit v1.2.3