Classes / Ladybug.Router
Handles the hash-based routing.
This class is used internally by the Ladybug.Application class. If you want to get a better understanding of how it works, please check the source at GitHub.
Initization callback, this is run by the constructor
- onRouteChange Route change callback
Starts the router, call this from your Application object
onDomReady callback (or
onFacebookReady if you're extending Ladybug.FacebookApplication)
Force a hash-change event and render a new module.
- route String with the route to navigate to, not including the hash, for example
See Ladybug.Class for inherited class methods.
Hash with default options
See Ladybug.Class for inherited class members. Go back to previous page