[jQuery] [validate] metadata bug

[jQuery] [validate] metadata bug


If this is in a form:
<input class="required" type="text"/>
and the form is validated with:
jQuery("#demo_form").validate({meta:"validate"}); // inside $.ready
Then I get this :
meta is undefined
file:///C:/Development/Assets/test/datetime/jquery.validate.js
Line 507
Which is caused by this:
return meta.messages && meta.messages[method];
I think this is a new function in the 1.4 script but I think it should
check for !meta before calling 'meta.messages' :
if(!meta){ return; }
This fixes the bug
Mike