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