Commit 33513d75 authored by Sindre Sorhus's avatar Sindre Sorhus

backbone+rjs - code style

parent 782fdad4
/*global define*/ /*global define */
define([ define([
'underscore', 'underscore',
'backbone', 'backbone',
...@@ -16,12 +16,12 @@ define([ ...@@ -16,12 +16,12 @@ define([
// Filter down the list of all todo items that are finished. // Filter down the list of all todo items that are finished.
completed: function () { completed: function () {
return this.where({completed:true}); return this.where({completed: true});
}, },
// Filter down the list to only todo items that are still not finished. // Filter down the list to only todo items that are still not finished.
remaining: function () { remaining: function () {
return this.where({completed:false}); return this.where({completed: false});
}, },
// We keep the Todos in sequential order, despite being saved by unordered // We keep the Todos in sequential order, despite being saved by unordered
...@@ -30,6 +30,7 @@ define([ ...@@ -30,6 +30,7 @@ define([
if (!this.length) { if (!this.length) {
return 1; return 1;
} }
return this.last().get('order') + 1; return this.last().get('order') + 1;
}, },
......
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