issues
search
bylexus
/
protobone
Backbone-inspired PrototypeJS Model extension - Enables Prototype JS users to fetch / store Models from / to a backend using AJAX / REST
http://bylexus.github.io/protobone/
MIT License
1
stars
1
forks
source link
implement Validation on models
#4
Open
bylexus
opened
9 years ago
bylexus
commented
9 years ago
Models should be validatable:
provide a
validate()
function (empty for a default implementation)
validate on save, fire an
invalid
event and throw an error, prevent save on invalid
optionally validate on set (additional option for set())
Models should be validatable:
validate()
function (empty for a default implementation)invalid
event and throw an error, prevent save on invalid