Skip to content

Instantly share code, notes, and snippets.

@taketime
Last active August 29, 2015 14:09
Show Gist options
  • Save taketime/c3c522e81ad7f9113fc7 to your computer and use it in GitHub Desktop.
Save taketime/c3c522e81ad7f9113fc7 to your computer and use it in GitHub Desktop.
  • Great reading: Router.route()

    • creates a new Route
    • route has a beforeStack and afterStack, both are MiddlewareStack objects
    • Middlewares maintain a _stack array, of functions to run before and after an options.action
  • how does this.ready work?

    • it's on a Controller object
    • Controller has a property called _waitlist
    • when everything in _waitlist has called ready, this.ready() is fired
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment