3 ms·
If backbone didn't use a normalization library like jQuery, they'd have to write their own and I don't think that is the aim of the project.
by emehrkay 14y ago
If backbone didn't use a normalization library like jQuery, they'd have to write their own and I don't think that is the aim of the project.
- masklinn 14y agoNote that backbone is also compatible zith Zepto though.
- emehrkay 14y agoAccording to Backbone, Zepto is jQuery as it has the same interface.
- lucaspiller 14y agoThe normalisation is purely to support older browsers though. Backbone doesn't really use that much of jQuery, have a search for 'Backbone.$' through the annotated source [1]. There are only 10 uses of it in the whole file, and not for anything too crazy. In modern browsers you could probably do away with jQuery and still avoid "if safari then...". [1] http://backbonejs.org/docs/backbone.html http://backbonejs.org/docs/backbone.html