Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 0c1b54f

Browse files
committed
fix($animate): correctly access minErr
ngMinErr is available during unit tests, but not in the build. There's currently no way to catch these access errors in automated testing.
1 parent 85e392f commit 0c1b54f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ngAnimate/shared.js

+1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ var isPromiseLike = function(p) {
7272
return p && p.then ? true : false;
7373
};
7474

75+
var ngMinErr = angular.$$minErr('ng');
7576
function assertArg(arg, name, reason) {
7677
if (!arg) {
7778
throw ngMinErr('areq', "Argument '{0}' is {1}", (name || '?'), (reason || "required"));

0 commit comments

Comments
 (0)