diff --git a/lib/toolkit.js b/lib/toolkit.js index 48283fd..a134bce 100644 --- a/lib/toolkit.js +++ b/lib/toolkit.js @@ -21,20 +21,18 @@ var ToolkitObject = function() { this.create(); }; -var Toolkit = new ToolkitObject(); - exports.create = function() { return new ToolkitObject(); }; exports.getInterface = function() { - return Toolkit.getInterface(); + return exports.create().getInterface(); }; exports.sendClick = function(wName, x, y, retry) { var i = 0; while (i < retry) { - Toolkit.getInterface().SendClick(wName, x, y); + exports.getInterface().SendClick(wName, x, y); i++; } };