You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, all validators only have the signature function(value)
As form validation calls editor.validate() for each editor, and then each editor build the entire form value model, the superfluous this.form.getValue() creates O(n^2) calls for nothing.
The text was updated successfully, but these errors were encountered:
I actually use formValues in my custom validators...
A solution would be to pass the editor to the validator, then the validator can call editor.form.getValue() if necessary.
It would also offer access to the editor's config, which might be useful.
Backbone.Form.Editor.validate() has the lines ...
However, all validators only have the signature
function(value)
As form validation calls editor.validate() for each editor, and then each editor build the entire form value model, the superfluous this.form.getValue() creates O(n^2) calls for nothing.
The text was updated successfully, but these errors were encountered: