Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

FIX: calling the correct callback on 'add' on Todos #169

Merged
merged 1 commit into from

2 participants

@ricogallo

The call to this.addAll for the 'add' event on Todos is redundant and incorrect, this fix corrects it.

@ricogallo ricogallo FIX: calling the correct callback on 'add' on Todos
The call to this.addAll for the 'add' event on Todos is redundant and incorrect, this fix corrects it.
d0ce7ec
@addyosmani addyosmani merged commit fb970bd into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 4, 2012
  1. @ricogallo

    FIX: calling the correct callback on 'add' on Todos

    ricogallo authored
    The call to this.addAll for the 'add' event on Todos is redundant and incorrect, this fix corrects it.
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  index.html
View
2  index.html
@@ -1343,7 +1343,7 @@ <h2 id="application-view">Application View</h2>
<span class="kw">this</span>.$<span class="fu">footer</span> = <span class="kw">this</span>.$(<span class="ch">&#39;#footer&#39;</span>);
<span class="kw">this</span>.$<span class="fu">main</span> = <span class="kw">this</span>.$(<span class="ch">&#39;#main&#39;</span>);
- <span class="kw">window</span>.<span class="fu">app</span>.<span class="fu">Todos</span>.<span class="fu">on</span>( <span class="ch">&#39;add&#39;</span>, <span class="kw">this</span>.<span class="fu">addAll</span>, <span class="kw">this</span> );
+ <span class="kw">window</span>.<span class="fu">app</span>.<span class="fu">Todos</span>.<span class="fu">on</span>( <span class="ch">&#39;add&#39;</span>, <span class="kw">this</span>.<span class="fu">addOne</span>, <span class="kw">this</span> );
<span class="kw">window</span>.<span class="fu">app</span>.<span class="fu">Todos</span>.<span class="fu">on</span>( <span class="ch">&#39;reset&#39;</span>, <span class="kw">this</span>.<span class="fu">addAll</span>, <span class="kw">this</span> );
<span class="kw">window</span>.<span class="fu">app</span>.<span class="fu">Todos</span>.<span class="fu">on</span>( <span class="ch">&#39;all&#39;</span>, <span class="kw">this</span>.<span class="fu">render</span>, <span class="kw">this</span> );
Something went wrong with that request. Please try again.