Closed dtuite closed 12 years ago
Right, I'm no JS ninja but here's what I think I've worked out.
Basically, no params
are passed into newValidate
when it is called on line 266. So then everything blows up when we call params.whatever
inside the newValidate
function.
I'm not sure what params
was meant to be though?
Params is the result of some devious things I'm doing to allow this to seamlessly integrate with Backbone's existing validation logic. Can you post the exact code that generated this error to a gist?
It turns out it was actually my own fault. I thought that I could do something like this.get('route').validatie()
but I see now that I need to pass something into validate()
like this:
route = this.get('route');
route.validate( route );
You can see what I was doing in this Gist.
Hi. Firstly, awesome plugin. I've been using it a lot today.
I'm trying to explicitly validate a model by calling
validate()
on it. However, I'm encountering an error:I need to call
validate
explicitly because I want to validate a child model before it's parent is saved.Any suggestions?