Commit b9e4f400 authored by Arthur Verschaeve's avatar Arthur Verschaeve

Ampersand: fix JSCS issues

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