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

Commit

Permalink
fix($animate): correctly access minErr
Browse files Browse the repository at this point in the history
ngMinErr is available during unit tests, but not in the build. There's
currently no way to catch these access errors in automated testing.
  • Loading branch information
Narretz committed Dec 10, 2015
1 parent 6858caf commit bc41ad8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ngAnimate/shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ var isPromiseLike = function(p) {
return p && p.then ? true : false;
};

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

0 comments on commit bc41ad8

Please sign in to comment.