new KScript()
Methods
call(contextObjectopt, variablesopt)
Calls the KScript
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
contextObject | contextObject | <optional> | Object that will be bound to the current object of the KScript |
variables | object | <optional> | Variables passed to the KScript environment |
callFunction(functionName, parametersopt, contextObjectopt)
Calls a function of the KScript
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
functionName | string | Name of the function | |
parameters | Array.<object> | <optional> | Parameters passed to the function |
contextObject | object | <optional> | Object that will be bound to the current object of the KScript |