Permalink
Browse files

Merge pull request #1004 from peterp/patch-2

Proposed clarification in documentation:
  • Loading branch information...
2 parents 04e2e20 + c4d53ab commit cf93180a55c54a170104b38b750dc7de17f7c0a8 @braddunbar braddunbar committed Feb 15, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 index.html
View
@@ -1597,6 +1597,7 @@ <h2 id="Collection">Backbone.Collection</h2>
<pre>
&lt;script&gt;
+ var Accounts = new Backbone.Collection;
Accounts.reset(&lt;%= @accounts.to_json %&gt;);
&lt;/script&gt;
</pre>
@@ -3054,7 +3055,9 @@ <h2 id="faq">F.A.Q.</h2>
<pre>
&lt;script&gt;
+ var Accounts = new Backbone.Collection;
Accounts.reset(&lt;%= @accounts.to_json %&gt;);
+ var Projects = new Backbone.Collection;
Projects.reset(&lt;%= @projects.to_json(:collaborators => true) %&gt;);
&lt;/script&gt;
</pre>

0 comments on commit cf93180

Please sign in to comment.