Skip to content

Commit

Permalink
fix($animate): correctly access minErr
Browse files Browse the repository at this point in the history
ngMinErr is aavailable during unit tests, but not when the build
is created.
  • Loading branch information
Narretz committed Dec 10, 2015
1 parent c31270c commit a60e0f2
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 @@ -72,6 +72,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 a60e0f2

Please sign in to comment.