Skip to content

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 b7b06d8 commit f470917
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 f470917

Please sign in to comment.