API Docs for: 0.13.12
Show:

Router Class

Defined in: src\firebrick.js:2004
Module: Firebrick

Methods

_convertToRegex

(
  • routes
)
Object private

convert route urls to regex

Parameters:

  • routes Object Map

Returns:

Object:

_getParamsForMatch

(
  • match
)
Map: private

Parameters:

  • match Object

    return of me.match()

Returns:

Map::

, arr:[]}|Null}

_hasParameterDefined

(
  • callback
)
Boolean private

checks the callback function to see whether the parameter _defaults was declared for the function

Parameters:

  • callback Function

Returns:

Boolean:

_routeCallback

() private

this function checks whether the callback has the method _defaults declared are a paramter. if not: the _defaults method is called after the callback is fired if yes: the _defaults method is passed to the callback as an argument, which must then be manually called used by callRoute()

_set

(
  • routes
)
private

Parameters:

  • routes Object Map

callRoute

(
  • url
  • args
)

Parameters:

  • url String
  • args Arguments Array

match

(
  • href
)

Parameters:

  • href String

Returns:

match or null

scrollTo

(
  • target
)

Parameters:

  • target String

    jquery selector

Properties

_routes

Array private

Default: []