diff options
author | Robert Ing <rmi22186@gmail.com> | 2015-01-01 16:11:10 -0800 |
---|---|---|
committer | Robert Ing <rmi22186@gmail.com> | 2015-01-01 16:11:10 -0800 |
commit | 4d9e33dfd69f8e711f56052b1562350e52fec351 (patch) | |
tree | 3b717a3a5380f1ae70ecb5bd9086948dec0ed0ef | |
parent | 26860068e15c2217ebffa0e51ae9879df6decacd (diff) | |
download | backbonetutorials-4d9e33dfd69f8e711f56052b1562350e52fec351.zip backbonetutorials-4d9e33dfd69f8e711f56052b1562350e52fec351.tar.gz backbonetutorials-4d9e33dfd69f8e711f56052b1562350e52fec351.tar.bz2 |
Update index.html
Clarified line 197 by adding a few commas to provide natural pauses to increase readability. I am new to Backbone and think this is a great resource. I changed:
So we can bind the change listener to individual attributes or if we like simply 'this.on("change", function(model){});' to listen for changes to all attributes of the model.
to
So we can bind the change listener to individual attributes, or, if we like, simply 'this.on("change", function(model){});' to listen for changes to all attributes of the model.
-rw-r--r-- | _site/what-is-a-model/index.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/_site/what-is-a-model/index.html b/_site/what-is-a-model/index.html index c1f9152..d895856 100644 --- a/_site/what-is-a-model/index.html +++ b/_site/what-is-a-model/index.html @@ -194,7 +194,7 @@ <span class="kd">var</span> <span class="nx">person</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">Person</span><span class="p">({</span> <span class="nx">name</span><span class="o">:</span> <span class="s2">"Thomas"</span><span class="p">,</span> <span class="nx">age</span><span class="o">:</span> <span class="mi">67</span><span class="p">});</span> <span class="nx">person</span><span class="p">.</span><span class="nx">set</span><span class="p">({</span><span class="nx">name</span><span class="o">:</span> <span class="s1">'Stewie Griffin'</span><span class="p">});</span> <span class="c1">// This triggers a change and will alert()</span></code></pre></div> -<p>So we can bind the change listener to individual attributes or if we like simply '<em>this.on("change", function(model){});</em>' to listen for changes to all attributes of the model.</p> +<p>So we can bind the change listener to individual attributes, or, if we like, simply '<em>this.on("change", function(model){});</em>' to listen for changes to all attributes of the model.</p> <h2>Interacting with the server</h2> |