Commit 582e35fe authored by dsumac's avatar dsumac

Move attribute comparator with others

parent f9b0e0ef
......@@ -45,6 +45,8 @@ TodoMVC.module('Todos', function (Todos, App, Backbone) {
localStorage: new Backbone.LocalStorage('todos-backbone-marionette'),
comparator: 'created',
getCompleted: function () {
return this.filter(this._isCompleted);
},
......@@ -53,8 +55,6 @@ TodoMVC.module('Todos', function (Todos, App, Backbone) {
return this.reject(this._isCompleted);
},
comparator: 'created',
_isCompleted: function (todo) {
return todo.isCompleted();
}
......
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