Commit b6b7915a authored by Michael Ficarra's avatar Michael Ficarra

replace weird boolean logic with ternary

parent 7837fd1f
...@@ -60,10 +60,9 @@ var app = app || {}; ...@@ -60,10 +60,9 @@ var app = app || {};
}, },
isHidden: function () { isHidden: function () {
var isCompleted = this.model.get('completed'); return this.model.get('completed') ?
return (// hidden cases only app.TodoFilter === 'active' :
(!isCompleted && app.TodoFilter === 'completed') || app.TodoFilter === 'completed';
(isCompleted && app.TodoFilter === 'active')
); );
}, },
......
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