diff options
| author | Ken Sheedlo | 2013-06-07 18:24:30 -0700 |
|---|---|---|
| committer | Igor Minar | 2013-06-17 13:29:30 -0700 |
| commit | 003861d2fdb37b83e1d0939d49b70fbc67766997 (patch) | |
| tree | dc53ff724097cc7485093bb43c2f3aa5f4377cb2 /src/Angular.js | |
| parent | 908071afbf32c46fe9110e4a67e104bbd4b3a56b (diff) | |
| download | angular.js-003861d2fdb37b83e1d0939d49b70fbc67766997.tar.bz2 | |
chore(minErr): replace ngError with minErr
Diffstat (limited to 'src/Angular.js')
| -rw-r--r-- | src/Angular.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Angular.js b/src/Angular.js index c9b6d530..2fb8f66c 100644 --- a/src/Angular.js +++ b/src/Angular.js @@ -54,6 +54,7 @@ var /** holds major version number for IE or NaN for real browsers */ slice = [].slice, push = [].push, toString = Object.prototype.toString, + ngMinErr = minErr('ng'), _angular = window.angular, @@ -573,7 +574,7 @@ function isLeafNode (node) { */ function copy(source, destination){ if (isWindow(source) || isScope(source)) { - throw ngError(43, "Can't copy! Making copies of Window or Scope instances is not supported."); + throw ngMinErr('cpws', "Can't copy! Making copies of Window or Scope instances is not supported."); } if (!destination) { @@ -588,7 +589,7 @@ function copy(source, destination){ } } } else { - if (source === destination) throw ngError(44, "Can't copy! Source and destination are identical."); + if (source === destination) throw ngMinErr('cpi', "Can't copy! Source and destination are identical."); if (isArray(source)) { destination.length = 0; for ( var i = 0; i < source.length; i++) { @@ -1044,7 +1045,7 @@ function bindJQuery() { */ function assertArg(arg, name, reason) { if (!arg) { - throw ngError(45, "Argument '{0}' is {1}", (name || '?'), (reason || "required")); + throw ngMinErr('areq', "Argument '{0}' is {1}", (name || '?'), (reason || "required")); } return arg; } |
