$k. KScript

new KScript()

Methods

call(contextObjectopt, variablesopt)

Calls the KScript

Parameters:
NameTypeAttributesDescription
contextObjectcontextObject<optional>

Object that will be bound to the current object of the KScript

variablesobject<optional>

Variables passed to the KScript environment

callFunction(functionName, parametersopt, contextObjectopt)

Calls a function of the KScript

Parameters:
NameTypeAttributesDescription
functionNamestring

Name of the function

parametersArray.<object><optional>

Parameters passed to the function

contextObjectobject<optional>

Object that will be bound to the current object of the KScript