Материал из Module developer
Перейти к: навигация, поиск

B.getModule

to get the module object. The module object is used to get access to module resources

Syntax

B.getModule(ModuleID)

input sample description
ModuleID ModuleID type: number
the module identifier
output
Object type: Object
the module object


Example:

IR.AddListener(IR.EVENT_MODULE_START, 0, function (ModuleID){
    var Module = B.getModule(ModuleID); 
})

Instead of the listener of the event IR.EVENT_START the listener of the event IR.EVENT_MODULE_START is used in the lite module. It sends the ModuleID parameter as Callback.