diff --git a/src/plugins/plugin.ts b/src/plugins/plugin.ts index aadb8329..e4f931d4 100644 --- a/src/plugins/plugin.ts +++ b/src/plugins/plugin.ts @@ -156,9 +156,7 @@ function wrapObservable(pluginObj:any, methodName:string, args:any[], opts:any = } function callInstance(pluginObj:any, methodName : string, args:any[], opts:any = {}, resolve? : Function, reject? : Function){ - //if(!systemCheck(null, pluginObj, methodName, resolve, reject)) return; args = setIndex(args, opts, resolve, reject); - console.log("!====!", pluginObj, methodName, args); return pluginObj._objectInstance[methodName].apply(pluginObj._objectInstance, args); } @@ -286,10 +284,8 @@ export function Cordova(opts:any = {}) { */ export function CordovaInstance(opts:any = {}) { return (target: Object, methodName: string) => { - console.log("P-A", target, methodName, opts); return { value: function(...args: any[]) { - console.log("P-B", ...args); return wrapInstance(this, methodName, opts).apply(this, args); } } @@ -306,7 +302,6 @@ export function CordovaProperty(target: Function, key: string, descriptor: Typed let originalMethod = descriptor.get; descriptor.get = function(...args: any[]) { - // console.log('Calling', this); if(!window.cordova) { cordovaWarn(this.name, null); return {}; diff --git a/src/util.ts b/src/util.ts index ff3fce6d..c4bca9be 100644 --- a/src/util.ts +++ b/src/util.ts @@ -1,5 +1,4 @@ export function get(obj, path) { - console.log(obj, path); for(var i = 0, path = path.split('.'), len = path.length; i < len; i++) { if(!obj) { return null; } obj = obj[path[i]]; diff --git a/test/app/index.html b/test/app/index.html index 264b6e23..6efabc83 100644 --- a/test/app/index.html +++ b/test/app/index.html @@ -2,7 +2,6 @@ - @@ -11,7 +10,5 @@ - -