Indicates whether or not the history module is actively tracking history.
The setTimeout interval used when the browser does not support hash change events.
Activate the hash change handling, returning true
if the current URL matches an existing route, and false
otherwise.
boolean
Returns true/false from loading the url unless the silent option was selected.
Checks the current URL to see if it has changed, and if it has, calls loadUrl
, normalizing across the hidden iframe.
boolean
Returns true/false from loading the url.
Disable history, perhaps temporarily. Not useful in a real app, but possibly useful for unit testing Routers.
Get the cross-browser normalized URL fragment, either from the URL, the hash, or the override.
The fragment.
Should we force push state?
string
he fragment.
Gets the true hash value. Cannot use location.hash directly due to a bug in Firefox where location.hash will always be decoded.
string
The hash.
Attempts to load the current URL fragment. A pass-through to options.routeHandler.
boolean
Returns true/false from the route handler.
Save a fragment into the hash history, or replace the URL state if the
'replace' option is passed. You are responsible for properly URL-encoding
the fragment in advance.
The options object can contain trigger: false
if you wish to not have the
route callback be fired, or replace: true
, if
you wish to modify the current URL without adding an entry to the history.
The url fragment to navigate to.
boolean
Returns true/false from loading the url.
Save a fragment into the hash history, or replace the URL state if the
'replace' option is passed. You are responsible for properly URL-encoding
the fragment in advance.
The options object can contain trigger: false
if you wish to not have the
route callback be fired, or replace: true
, if
you wish to modify the current URL without adding an entry to the history.
The url fragment to navigate to.
An options object with optional trigger and replace flags. You can also pass a boolean directly to set the trigger option. Trigger is true
by default.
boolean
Returns true/false from loading the url.
Navigates back in the browser history.