3 ms·
I don't see the need for the Backbone and Handlebars requirements to accomplish this? Wouldn't writing it as a jQuery plugin or the like suffice?
by jrnkntl 15y ago
I don't see the need for the Backbone and Handlebars requirements to accomplish this? Wouldn't writing it as a jQuery plugin or the like suffice?
- Swizec 15y agoYou're right, I could write it so the only dependency is jQuery. But using Backbone makes the implementation much cleaner and more robust. Especially considering there are three data representations that all have to be in sync: - the actual multiselect - the visible checkboxes - the internal state I thought about using pure jQuery, but my head soon started spinning and I decided to do it right.
- gillesmaes 15y agoI hope you don't mind, made a quick jQuery only version. http://gillesmaes.github.com/Multibox/ http://gillesmaes.github.com/Multibox/