Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update README.md

  • Loading branch information...
commit f466255015619991a44c3f2d48532780c5944fa4 1 parent 1f60a52
@boazsender authored
Showing with 8 additions and 4 deletions.
  1. +8 −4 README.md
View
12 README.md
@@ -12,11 +12,15 @@ In your web page:
```html
<script src="jquery.js"></script>
-<script src="dist/backbone.search.min.js"></script>
+<script src="backbone.min.js"></script>
+<script src="backbone.search.min.js"></script>
<script>
-jQuery(function($) {
- $.awesome(); // "awesome"
-});
+ var searchableObjs = new Backbone.Collection( arrOfObjs );
+
+ var results = searchableObjs.search( "term" )
+
+ // 'results' is a new collection, where the models that score higher than
+ // 0 for "term" are sorted by their score for matching "term"
</script>
```
Please sign in to comment.
Something went wrong with that request. Please try again.