arturadib / agility

Javascript MVC for the "write less, do more" programmer
http://agilityjs.com
MIT License
542 stars 70 forks source link

Incorrect data-bind string format breaks in very cryptic way #55

Closed tristanls closed 12 years ago

tristanls commented 12 years ago

If someone writes

< select data-bind="id id, value" >

It will break with unhelpful Uncaught agility.js: unknown argument for getter error message. It would be quite difficult to figure out that the correction is

< select data-bind="value, id id">
tlack commented 12 years ago

Perhaps making the data-bind format look like "value,class=itemClass" rather than "value,class itemClass" would make it easier to visually recognize and detect these errors inside agility.js itself?

tristanls commented 12 years ago

Fixed in #65