mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-02-06 23:14:58 +00:00
25 lines
640 B
JavaScript
25 lines
640 B
JavaScript
////////////////////////////////////////////////////////////////////////
|
|
// WelsonJS.Toolkit API
|
|
////////////////////////////////////////////////////////////////////////
|
|
|
|
var ToolkitObject = function() {
|
|
this.interface = null;
|
|
|
|
this.create = function() {
|
|
try {
|
|
this.interface = CreateObject("WelsonJS.Toolkit");
|
|
return this;
|
|
} catch (e) {
|
|
console.error("ToolkitObject.create() ->", e.message);
|
|
}
|
|
};
|
|
|
|
this.getInterface = function() {
|
|
return this.interface;
|
|
};
|
|
};
|
|
|
|
exports.create = function() {
|
|
return new ToolkitObject();
|
|
};
|