Router Class
Item Index
Methods
Properties
Methods
_convertToRegex
(
Object
private
-
routes
convert route urls to regex
Parameters:
-
routesObject Map
Returns:
Object:
_getParamsForMatch
(
Map:
private
-
match
Parameters:
-
matchObjectreturn of me.match()
Returns:
Map::
, arr:[]}|Null}
_hasParameterDefined
(
Boolean
private
-
callback
checks the callback function to see whether the parameter _defaults was declared for the function
Parameters:
-
callbackFunction
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
(
private
-
routes
Parameters:
-
routesObject Map
callRoute
(
-
url -
args
Parameters:
-
urlString -
argsArguments Array
match
(
-
href
Parameters:
-
hrefString
Returns:
match or null
scrollTo
(
-
target
Parameters:
-
targetStringjquery selector
Properties
_routes
Array
private
Default: []
