Skip to content
This repository has been archived by the owner on Jul 12, 2020. It is now read-only.

Commit

Permalink
Merge pull request #658 from cfarm/patch-1
Browse files Browse the repository at this point in the history
Chapter 4 Exercise 1 router.js sample code: declare app object
  • Loading branch information
addyosmani committed Jun 21, 2015
2 parents 074672e + cd769aa commit 5838f4a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions chapters/04-exercise-1.md
Expand Up @@ -757,6 +757,8 @@ When the route changes, the todo list will be filtered on a model level and the
// Todo Router
// ----------

var app = app || {};

var Workspace = Backbone.Router.extend({
routes:{
'*filter': 'setFilter'
Expand Down

0 comments on commit 5838f4a

Please sign in to comment.