Skip to content

Methods

✌ Makis Tracend edited this page Jan 24, 2014 · 1 revision

Once Construct.js is loaded, it takes up the global namespace construct and all operations can be done through methods in that namespace.

Main setup actions are the following:

.config()

Returns the full dependency object as used in require.config

.register( [function] )

Connects objects, like extensions and potentially other middleware, with the update trigger.

.configure( [function] )

Sets logic that will run on initialization, when all dependencies are loaded.

.lang( [object] )

This is how you can extend language support, used for localisation - language strings are saved in window.locale

Clone this wiki locally