Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GameRouter = new Backbone.Router.extend
- routes:
- "start": "start"
- "draw": "draw"
- start: ->
- this.navigate('/draw')
- draw: ->
- $('#sketchpad .front > div').hide()
- $('#draw').show()
- $('#sketchpad').removeClass("flipped")
- # Causes "Uncaught TypeError: Object [object Object] has no method 'apply'" (backbone.js:1103)
- window.game = new GameRouter
- Backbone.history.start root: "/play"
Add Comment
Please, Sign In to add comment