API Docs for: 0.4
Show:

Config.common Class

Access point: ac.config.* Provides access to the Mojits configuration

Item Index

Methods

Methods

get

(
  • key
  • def
)
Object | Array | String

Access config values.

Parameters:

  • key String

    A period separated key path to look for i.e. "get.my.value".

  • def Object | Array | String

    The default value to use if no match was found.

Returns:

Object | Array | String: The requested configuration value.

getDefinition

(
  • key
  • def
)
Object | Array | String

Access definition values.

Parameters:

  • key String

    A period separated key path to look for i.e. "get.my.value".

  • def Object | Array | String

    The default value to use if no match was found.

Returns:

Object | Array | String: The requested definition values.