Skip to content

Commit

Permalink
adds missing parenthesis to constructor function
Browse files Browse the repository at this point in the history
  • Loading branch information
caillou committed Dec 27, 2011
1 parent c3f6168 commit 46003db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ GalleryRouter = Backbone.Router.extend({

/* Now that we have a router setup, remember to instantiate it*/

var myGalleryRouter = new GalleryRouter;
var myGalleryRouter = new GalleryRouter();
```

Note: In Backbone 0.5+, it's possible to opt-in for HTML5 pushState support via `window.history.pushState`. This effectively permits non-hashtag routes such as http://www.scriptjunkie.com/just/an/example to be supported with automatic degradation should your browser not support it. For the purposes of this tutorial, we won't be relying on this newer functionality as there have been reports about issues with it under iOS/Mobile Safari. Backbone's hash-based routes should however suffice for our needs.
Expand Down

0 comments on commit 46003db

Please sign in to comment.