Skip to content

Commit

Permalink
Merge branch 'master' into gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
tgriesser committed Mar 20, 2013
2 parents 9e1ba5e + ee8739a commit 3853b31
Showing 1 changed file with 20 additions and 21 deletions.
41 changes: 20 additions & 21 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1785,7 +1785,7 @@ <h2 id="Collection">Backbone.Collection</h2>
<p id="Collection-set">
<b class="header">set</b><code>collection.set(models, [options])</code>
<br />
The <b>set</b> method tries to peform a "smart" update of the collection
The <b>set</b> method performs a "smart" update of the collection
with the passed list of models. If a model in the list isn't yet in the
collection it will be added; if the model is already in the collection
its attributes will be merged; and if the collection contains any models that
Expand Down Expand Up @@ -2026,13 +2026,12 @@ <h2 id="Collection">Backbone.Collection</h2>
<b class="header">fetch</b><code>collection.fetch([options])</code>
<br />
Fetch the default set of models for this collection from the server,
resetting the collection when they arrive. The <b>options</b> hash takes
<tt>success</tt> and <tt>error</tt> callbacks which will both be passed
<tt>(collection, response, options)</tt> as arguments.
When the model data returns from the server, the collection will be (efficiently)
<a href="#Collection-reset">reset</a>, unless you pass <tt>{set: true}</tt>,
in which case it will use <a href="#Collection-set">set</a> to (intelligently)
merge the fetched models.
<a href="#Collection-set">setting</a> them on the collection when they arrive.
The <b>options</b> hash takes <tt>success</tt> and <tt>error</tt> callbacks
which will both be passed <tt>(collection, response, options)</tt> as arguments.
When the model data returns from the server, it uses <a href="#Collection-set">set</a>
to (intelligently) merge the fetched models, unless you pass <tt>{reset: true}</tt>,
in which case the collection will be (efficiently) <a href="#Collection-reset">reset</a>.
Delegates to <a href="#Sync">Backbone.sync</a>
under the covers for custom persistence strategies and returns a
<a href="http://api.jquery.com/jQuery.ajax/#jqXHR">jqXHR</a>.
Expand Down Expand Up @@ -2955,23 +2954,23 @@ <h2 id="examples-newsblur">NewsBlur</h2>
</a>
</div>

<h2 id="examples-wordpress">WordPress.com</h2>
<h2 id="examples-wordpress">WordPress.com</h2>

<p>
<a href="http://wordpress.com/">WordPress.com</a> is the software-as-a-service
version of <a href="http://wordpress.org">WordPress</a>. It uses Backbone.js
Models, Collections, and Views in its
<a href="http://en.blog.wordpress.com/2012/05/25/notifications-refreshed/">Notifications system</a>. Backbone.js was selected
because it was easy to fit into the structure of the application, not the
other way around. <a href="http://automattic.com">Automattic</a>
(the company behind WordPress.com) is integrating Backbone.js into the
Stats tab and other features throughout the homepage.
</p>
<p>
<a href="http://wordpress.com/">WordPress.com</a> is the software-as-a-service
version of <a href="http://wordpress.org">WordPress</a>. It uses Backbone.js
Models, Collections, and Views in its
<a href="http://en.blog.wordpress.com/2012/05/25/notifications-refreshed/">Notifications system</a>. Backbone.js was selected
because it was easy to fit into the structure of the application, not the
other way around. <a href="http://automattic.com">Automattic</a>
(the company behind WordPress.com) is integrating Backbone.js into the
Stats tab and other features throughout the homepage.
</p>

<div style="text-align: center;">
<a href="http://wordpress.com/">
<img width="550" height="387" data-original="docs/images/wpcom-notifications.png" alt="WordPress.com Notifications"
title="WordPress.com Notifications" class="example_image" />
title="WordPress.com Notifications" class="example_image" />
</a>
</div>

Expand Down Expand Up @@ -3739,7 +3738,7 @@ <h2 id="faq">F.A.Q.</h2>

// And then, when the Inbox is opened:

inbox.messages.fetch();
inbox.messages.fetch({reset: true});
</pre>

<p>
Expand Down

0 comments on commit 3853b31

Please sign in to comment.