Download:
child 16:b4cc000f676d
parent 14:01b83171cef5
15:435c0fa0c9ff
Anton Shestakov <av6@dwimlabs.net>, Mon, 08 Jun 2015 16:47:00 +0800
docs: typos, formatting, new url

1 файлов изменено, 12 вставок(+), 13 удалений(-) [+]
README.md file | annotate | diff | comparison | revisions
--- a/README.md Thu Mar 21 15:47:33 2013 +0900
+++ b/README.md Mon Jun 08 16:47:00 2015 +0800
@@ -1,16 +1,16 @@
Overview
========
-Backbone.Shard is a variation on a Subset taken from different perspective.
-Shard was built as a simple "persistent filter" for collections; it can
-help grouping and displaying items of certain kind based on your filter
-function. I know it works for me, but your mileage may vary.
+Backbone.Shard is a variation on a Subset taken from different perspective.
+Shard was built as a simple "persistent filter" for collections; it can help
+grouping and displaying items of certain kind based on your filter function. I
+know it works for me, but your mileage may vary.
Usage
=====
-It's easy if you're familiar with Backbone.Collection since Shard shares
-with it most of the methods marked **Underscore methods** in the
+It's easy if you're familiar with Backbone.Collection since Shard shares with
+it most of the methods marked **Underscore methods** in the
[documentation](http://backbonejs.org/#Collection-Underscore-Methods):
:::javascript
@@ -22,20 +22,19 @@
shelf.each(...);
shelf.pluck(...);
-You can add/remove models or reset *the original collection* and Shard will
-honestly try to keep up with it, but currently Shard itself has no methods
-such as add/remove/reset.
+You can add/remove models or reset *the original collection* and Shard will
+honestly try to keep up with it, but currently Shard itself has no methods such
+as add/remove/reset.
Events work and respect your filter function:
:::javascript
shelf.on('add', doSomething);
- collection.add({read true}); // this will call doSomething
+ collection.add({read: true}); // this will call doSomething
collection.add({read: false}); // this won't
Tests
=====
-Download the
-[source](https://bitbucket.org/engored/backbone-shard/get/tip.tar.bz2) and
-open test/index.html in your browser.
+Download the [source](https://bitbucket.org/av6/backbone-shard/get/tip.tar.bz2)
+and open test/index.html in your browser.