vivin / regula

Regula: An annotation-based form-validation framework in Javascript
126 stars 24 forks source link

Bug: bind elements without options no longer works #22

Closed troyji closed 13 years ago

troyji commented 13 years ago

The latest code change breaks the ability to bind specific elements without options.

var options = { elements: $(".regulaElements").get() };
regula.bind(options);

This call throws an exception in function 'bindFromOptions' because the constraints attribute is empty on the options element. It should not.

troyji commented 13 years ago

Looks good.