Reimplemented using CordovaInstance.

Fixed wrapInstance signature to match how it is called.
This commit is contained in:
glecaros
2016-05-14 00:24:45 -07:00
parent 631d7f2d85
commit 9ddde5762d
2 changed files with 20 additions and 23 deletions
+1 -1
View File
@@ -160,7 +160,7 @@ function callInstance(pluginObj: any, methodName: string, args: any[], opts: any
return pluginObj._objectInstance[methodName].apply(pluginObj._objectInstance, args);
}
function wrapInstance (pluginObj: any, methodName: string, args: any[], opts: any = {}) {
function wrapInstance (pluginObj: any, methodName: string, opts: any = {}) {
return (...args) => {
if (opts.sync) {
return callInstance(pluginObj, methodName, args, opts);