Skip to content

Commit

Permalink
Backbone naming tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
gregloby authored and sindresorhus committed Aug 6, 2013
1 parent 3debb37 commit 6d5c1f0
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions architecture-examples/backbone/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ <h1>todos</h1>
<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>
Expand Down
4 changes: 2 additions & 2 deletions architecture-examples/backbone/js/collections/todos.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,

Expand Down Expand Up @@ -44,5 +44,5 @@ var app = app || {};
});

// Create our global collection of **Todos**.
app.todos = new TodoList();
app.todos = new Todos();
})();
4 changes: 2 additions & 2 deletions architecture-examples/backbone/js/routers/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var app = app || {};

// Todo Router
// ----------
var Workspace = Backbone.Router.extend({
var TodoRouter = Backbone.Router.extend({
routes: {
'*filter': 'setFilter'
},
Expand All @@ -21,6 +21,6 @@ var app = app || {};
}
});

app.TodoRouter = new Workspace();
app.TodoRouter = new TodoRouter();
Backbone.history.start();
})();

0 comments on commit 6d5c1f0

Please sign in to comment.