benpickles / js-model

Work with models in your JavaScript
http://benpickles.github.io/js-model/
MIT License
403 stars 42 forks source link

validations are broken #1

Closed kernow closed 13 years ago

kernow commented 14 years ago

Using jquery 1.3.1 when running the validation example in the read me post.valid() returns false when all the validations are met. Is there a requirement for jquery 1.4+?

benpickles commented 14 years ago

jQuery 1.4+ is required - though it's only really needed for REST persistence otherwise everything else works fine. Try this: http://gist.github.com/353675

It sounds like you're using old syntax or running an older version of js-model - there was a slight change in syntax for declaring models and adding errors. What version are you running?

benpickles commented 13 years ago

closing