3 ms·
How dependent is backbone on jQuery? I see that the docs mention zepto as an alternative to jQuery for backbone.view, how hard would it be to extend that to oth
by mhd 16y ago
How dependent is backbone on jQuery? I see that the docs mention zepto as an alternative to jQuery for backbone.view, how hard would it be to extend that to other libraries?
jQuery sits pretty much at one end of the libraries spectrum, being mostly a DSL about dom manipulation. So if you want a bit more structure by using e.g. YUI or MooTools, would there be any big issues?
- gregwebs 16y agosomeone forked a MooTools version, so it is doable. Zepto is a lighter-weight jQuery compatible library- so you shouldn't feel as bad about having it as a dependency. It might also be possible to have a stripped build of jQuery.
- ryankirkman 16y agoThat would be here: https://github.com/jeromegn/backbone-mootools https://github.com/jeromegn/backbone-mootools
- nzjames 16y agoI've got to +1 for YUI3. I started researching the space for building real Javascript applications fully biased on doing it with x and JQuery. But after a bit of research and prototyping I was sold on the quality and coverage of YUI. - It has simplified DOM selectors like JQuery - A solid Base class to extend for everything - A fully extensible widget class/lifecycle - Datatable has just hit beta http://developer.yahoo.com/yui/3/datatable/ http://developer.yahoo.com/yui/3/datatable/