Commit 90efaca6 authored by addyosmani's avatar addyosmani

Fixing dynamic filtering issue post split.

parent 2106848c
......@@ -17,6 +17,7 @@
// Trigger a collection reset/addAll
window.app.Todos.trigger('reset');
}
});
......
......@@ -79,6 +79,8 @@ $(function( $ ) {
// Add all items in the **Todos** collection at once.
addAll: function() {
console.log('addall', window.app.TodoFilter);
this.$("#todo-list").html('');
switch(window.app.TodoFilter){
......
$(function() {
'use strict';
// Todo Filter (active || completed || "")
window.app.TodoFilter = "";
// Todo Item View
// --------------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment