Permalink
Browse files

Fixed some text that wasn't supposed to get wrapped as code

  • Loading branch information...
1 parent e5082c7 commit 64e0c742d0df246ebfdba97ff5caddd081e135e6 @GMali GMali committed Sep 3, 2012
Showing with 3 additions and 4 deletions.
  1. +3 −4 index.html
View
@@ -747,10 +747,9 @@ <h3 id="chainable-api">Chainable API</h3>
.<span class="fu">map</span>(<span class="kw">function</span>(item) { <span class="kw">return</span> <span class="kw">item</span>.<span class="fu">get</span>(<span class="ch">&#39;name&#39;</span>); })
.<span class="fu">value</span>();
-<span class="co">// Will return [&#39;Ida&#39;, &#39;Rob&#39;]</span>
-Some of the Backbone-specific method will <span class="kw">return</span> <span class="kw">this</span>, which means they can be chained as <span class="dt">well</span>:
-
-<span class="kw">var</span> collection = <span class="kw">new</span> <span class="kw">Backbone</span>.<span class="fu">Collection</span>();
+<span class="co">// Will return [&#39;Ida&#39;, &#39;Rob&#39;]</span></code></pre>
+<p>Some of the Backbone-specific method will return <code>this</code>, which means they can be chained as well:</p>
+<pre class="sourceCode javascript"><code class="sourceCode javascript"><span class="kw">var</span> collection = <span class="kw">new</span> <span class="kw">Backbone</span>.<span class="fu">Collection</span>();
collection
.<span class="fu">add</span>({ <span class="dt">name</span>: <span class="ch">&#39;John&#39;</span>, <span class="dt">age</span>: <span class="dv">23</span> })

0 comments on commit 64e0c74

Please sign in to comment.