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
Im trying to extend existing validator but I get typeerror because of wrong scope
Is there any way I can do this so that it works?
How would I extend the default set of validators to add this so that I can use it in other places in my app?
Thanks
multipleEmails: (value, attr, computedState) ->
emails = if value then value.split(',') else []
for email in emails
foo = Backbone.Validation.validators.pattern email, attr, 'email', @
return "#{attr} must contain a comma separated list of emails" unless foo
''
The text was updated successfully, but these errors were encountered:
Hi
Im trying to extend existing validator but I get typeerror because of wrong scope
Is there any way I can do this so that it works?
How would I extend the default set of validators to add this so that I can use it in other places in my app?
Thanks
The text was updated successfully, but these errors were encountered: