Commit b4d6f564 authored by Pascal Hartig's avatar Pascal Hartig

Merge pull request #1049 from teamso/reformat

Move attribute comparator with others
parents 6c297cfb 582e35fe
......@@ -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