Skip to content

Commit 177285e

Browse files
committed
src: bind validators with scope as ctx
1 parent d95d6ee commit 177285e

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

dist/schema-form.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2801,7 +2801,7 @@ angular.module('schemaForm').directive('schemaValidate', ['sfValidator', '$parse
28012801
// Check if our version of angular has validators, i.e. 1.3+
28022802
if (form[attr] && ngModel[attr]) {
28032803
angular.forEach(form[attr], function(fn, name) {
2804-
ngModel[attr][name] = fn;
2804+
ngModel[attr][name] = fn.bind(scope);
28052805
});
28062806
}
28072807
});

0 commit comments

Comments
 (0)