App.core

The App.core module handles initialization of the Helium framework

Events

Name Fired when
ready application is ready. Templating, routing, i18n etc has been setup.

Read more about event handling.

Methods

(static) initialize()

Initializes the Helium framework. When the core has initialized an ready event is fired.

(static) off(event, handler)

Remove a subscribtion.

Parameters:
Name Type Description
event String

Event to remove subscription from

handler function

Callback to remove

(static) on(event, handler)

Subscribe to an event.

Parameters:
Name Type Description
event String

Event to subscribe to

handler function

Callback function

(static) openURL(url)

Parameters:
Name Type Description
url string

(static) trigger(event, data)

Parameters:
Name Type Description
event
data