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

Commit 3c45ae5

Browse files
author
Caleb Kniffen
committed
fix(formly): Switched from using Function.bind to angular.bind to support more browsers.
1 parent b0f0bc4 commit 3c45ae5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/directives/formly-custom-validation.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ function formlyCustomValidation(formlyUtil) {
1717

1818

1919
const useNewValidatorsApi = ctrl.hasOwnProperty('$validators') && !attrs.hasOwnProperty('useParsers');
20-
angular.forEach(opts.validators, addValidatorToPipeline.bind(null, false));
21-
angular.forEach(opts.asyncValidators, addValidatorToPipeline.bind(null, true));
20+
angular.forEach(opts.validators, angular.bind(null, addValidatorToPipeline, false));
21+
angular.forEach(opts.asyncValidators, angular.bind(null, addValidatorToPipeline, true));
2222

2323
function addValidatorToPipeline(isAsync, validator, name) {
2424
setupMessage(validator, name);

0 commit comments

Comments
 (0)