Constructor
new Context(ctx)
Parameters:
| Name | Type | Description |
|---|---|---|
ctx |
object | an object representing data for the context. |
Members
<static> currentContext
pseudo-singleton to current context being used
Methods
getComponentList()
Returns:
the component list stored inside context
getConstant(cName)
Parameters:
| Name | Type | Description |
|---|---|---|
cName |
String | name of the constant |
Returns:
a constant value stored by the engine given its name
loadLibrary(libName, cbFunction)
loads a given library and, if necessary, launches a call back function
when the library is loaded.
Parameters:
| Name | Type | Description |
|---|---|---|
libName |
string | name of the library to load |
cbFunction |
function | callback function to call when library is loaded |
.js