Commit b9e4f400 authored by Arthur Verschaeve's avatar Arthur Verschaeve

Ampersand: fix JSCS issues

parent ec5123a5
......@@ -30,8 +30,8 @@ module.exports = Collection.extend({
// and persist on change
this.on('all', this.writeToLocalStorage, this);
},
getCompletedCount: function() {
return this.reduce(function(total, todo){
getCompletedCount: function () {
return this.reduce(function (total, todo) {
return todo.completed ? ++total : total;
}, 0);
},
......
......@@ -52,9 +52,9 @@ module.exports = View.extend({
type: 'switchClass',
name: 'selected',
cases: {
'all': '[data-hook=all-mode]',
'active': '[data-hook=active-mode]',
'completed': '[data-hook=completed-mode]',
all: '[data-hook=all-mode]',
active: '[data-hook=active-mode]',
completed: '[data-hook=completed-mode]'
}
},
// Bind 'checked' state of checkbox
......
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