Skip to content

Commit 11a688d

Browse files
committed
Remove the old SimpleSchema.prototype.validator
1 parent ab2b9ad commit 11a688d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

simple-schema.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -642,8 +642,7 @@ SimpleSchema.addValidator = function(func) {
642642
};
643643

644644
// Instance custom validators
645-
// validator is deprecated; use addValidator
646-
SimpleSchema.prototype.addValidator = SimpleSchema.prototype.validator = function(func) {
645+
SimpleSchema.prototype.addValidator = function(func) {
647646
this._validators.push(func);
648647
};
649648

0 commit comments

Comments
 (0)