superfeedr / indexeddb-backbonejs-adapter

An indexedDB adapter for Backbonejs
http://blog.superfeedr.com/indexeddb-backbonejs-adapter/
MIT License
248 stars 61 forks source link

Fulfil optional jQuery dependency from Backbone.$ instead of the global $ object. #52

Closed andornaut closed 10 years ago

andornaut commented 10 years ago

Fulfil optional jQuery dependency from Backbone.$ instead of the global $ object.

If jQuery is used with Backbonejs, then it should be available as Backbone.$. Since we're already using require() to get Backbone, but do not want to create a hard dependency on jQuery, it's better to refer to Backbone.$ instead of relying on a global $ object.