vivin/regula

Bug: bind elements without options no longer works

troyji opened this issue · 1 comments

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.

Looks good.