@samitouri / QOS-React-2 / commits / b4c0661dce
Fork 0

The library for web and native user interfaces.

Make more idiomatic

petehunt committed May 30, 2013 at 03:38 UTC b4c0661dce3717e244c25244249c3b2bbe026364
1 file changed +1 -3
examples/todomvc-backbone/js/app.js
+1 -3
@@ -184,9 +184,7 @@ var TodoApp = React.createClass({
184 this.setState({editing: {}});
185 },
186 clearCompleted: function() {
187 - this.props.todos.filter(function(todo) {
188 - return todo.get('completed');
189 - }).map(this.props.todos.remove.bind(this.props.todos));
187 + this.props.todos.completed().map(this.props.todos.remove.bind(this.props.todos));
188 },
189 componentDidUpdate: function() {
190 Utils.store('todos-react', this.props.todos);