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

Commit bc41ad8

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 6858caf commit bc41ad8

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
@@ -73,6 +73,7 @@ var isPromiseLike = function(p) {
7373
return p && p.then ? true : false;
7474
};
7575

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

0 commit comments

Comments
 (0)