Commit 6d5c1f0f authored by Greg Lobinski's avatar Greg Lobinski Committed by Sindre Sorhus

Backbone naming tweaks

Closes #610
Fixes #605
parent 3debb37a
......@@ -56,8 +56,8 @@
<script src="bower_components/backbone.localStorage/backbone.localStorage.js"></script>
<script src="js/models/todo.js"></script>
<script src="js/collections/todos.js"></script>
<script src="js/views/todos.js"></script>
<script src="js/views/app.js"></script>
<script src="js/views/todo-view.js"></script>
<script src="js/views/app-view.js"></script>
<script src="js/routers/router.js"></script>
<script src="js/app.js"></script>
</body>
......
......@@ -9,7 +9,7 @@ var app = app || {};
// The collection of todos is backed by *localStorage* instead of a remote
// server.
var TodoList = Backbone.Collection.extend({
var Todos = Backbone.Collection.extend({
// Reference to this collection's model.
model: app.Todo,
......@@ -44,5 +44,5 @@ var app = app || {};
});
// Create our global collection of **Todos**.
app.todos = new TodoList();
app.todos = new Todos();
})();
......@@ -6,7 +6,7 @@ var app = app || {};
// Todo Router
// ----------
var Workspace = Backbone.Router.extend({
var TodoRouter = Backbone.Router.extend({
routes: {
'*filter': 'setFilter'
},
......@@ -21,6 +21,6 @@ var app = app || {};
}
});
app.TodoRouter = new Workspace();
app.TodoRouter = new TodoRouter();
Backbone.history.start();
})();
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