diff --git a/entries/Validator.destroy.xml b/entries/Validator.destroy.xml new file mode 100644 index 0000000..89c9714 --- /dev/null +++ b/entries/Validator.destroy.xml @@ -0,0 +1,28 @@ + + + + Validator.destroy() + + + Destroys this instance of validator freeing up resources and unregistering events. + This is only useful, when you need to clean up after the validator in a Single Page Application. + + Destroying an instance of validator. + + + + diff --git a/pages/documentation.md b/pages/documentation.md index 37e8430..97fa99f 100644 --- a/pages/documentation.md +++ b/pages/documentation.md @@ -95,6 +95,7 @@ The validate method returns a Validator object that has a few public methods tha * [`Validator.resetForm()` - Resets the controlled form.](/Validator.resetForm) * [`Validator.showErrors()` - Show the specified messages.](/Validator.showErrors) * [`Validator.numberOfInvalids()` - Returns the number of invalid fields.](/Validator.numberOfInvalids) +* [`Validator.destroy()` - Destroys this instance of validator.](/Validator.destroy) There are a few static methods on the validator object: