Module
This is a function which creates a new module object.A module automatically registers itself with jsolait upoun creation. Once registered it can be imported with importModule.
module creation
A module can be easyly created by calling:
Module(name, version, moduleScope)
parameters:
Module(name, version, moduleScope)
parameters:
- name
The name of the module(e.g. xmlrpc). - version
The modules version String(e.g. "0.0.1"). - moduleScope
A function object which will be called with the module object as parameter upon module creation.
Module("myModule", "0.0.1", function(thisMod){
thisMod.someMethod=function(){
//do something
}
})
thisMod.someMethod=function(){
//do something
}
})
instance methods
- toString()
Returns the string representation of a Module.
instance properties
- name
The name of the module(e.g. xmlrpc). - version
The modules version String(e.g. "0.0.4").