boazsender/backbone.search — pull request #11 by jugglinmike (2012-12-21 16:11:23+00:00)
Title: Add tests, fix bugs

This PR fixes the following bugs:

- Case sensitivity (all search queries should be considered case-insensitive)
- Attribute searching (because the search operates over a single collection, it seems safe to assume that most models will share most attributes in common, making them largely irrelevant to the process of ranking)
- jQuery referencing (create a local reference to the global jQuery method so that subsequent calls to `jQuery.noConflict` will not effect the plugin's internals)

It also introduces a light test suite to ensure expected behavior.