chore(): comment out debug statements

This commit is contained in:
Tim Lancina 2016-03-04 13:53:59 -06:00
parent c48a851d87
commit f360827b20

View File

@ -72,7 +72,7 @@ function callCordovaPlugin(pluginObj:any, methodName:string, args:any[], opts:an
return; return;
} }
console.log('Cordova calling', pluginObj.name, methodName, args); // console.log('Cordova calling', pluginObj.name, methodName, args);
// TODO: Illegal invocation needs window context // TODO: Illegal invocation needs window context
return get(window, pluginObj.pluginRef)[methodName].apply(pluginInstance, args); return get(window, pluginObj.pluginRef)[methodName].apply(pluginInstance, args);
@ -80,13 +80,13 @@ function callCordovaPlugin(pluginObj:any, methodName:string, args:any[], opts:an
function getPromise(cb) { function getPromise(cb) {
if(window.Promise) { if(window.Promise) {
console.log('Native promises available...'); // console.log('Native promises available...');
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
cb(resolve, reject); cb(resolve, reject);
}) })
} else if(window.angular) { } else if(window.angular) {
let $q = window.angular.injector(['ng']).get('$q'); let $q = window.angular.injector(['ng']).get('$q');
console.log('Loaded $q', $q); // console.log('Loaded $q', $q);
return $q((resolve, reject) => { return $q((resolve, reject) => {
cb(resolve, reject); cb(resolve, reject);
}); });
@ -113,7 +113,7 @@ function wrapObservable(pluginObj:any, methodName:string, args:any[], opts:any =
return get(window, pluginObj.pluginRef)[opts.clearFunction].call(pluginObj, pluginResult); return get(window, pluginObj.pluginRef)[opts.clearFunction].call(pluginObj, pluginResult);
} catch(e) { } catch(e) {
console.warn('Unable to clear the previous observable watch for', pluginObj.name, methodName); console.warn('Unable to clear the previous observable watch for', pluginObj.name, methodName);
console.log(e); console.error(e);
} }
} }
}); });
@ -174,7 +174,7 @@ export function RequiresPlugin(target: Function, key: string, descriptor: TypedP
let originalMethod = descriptor.value; let originalMethod = descriptor.value;
descriptor.value = function(...args: any[]) { descriptor.value = function(...args: any[]) {
console.log('Calling', this); // console.log('Calling', this);
if(!window.cordova) { if(!window.cordova) {
cordovaWarn(this.name, null); cordovaWarn(this.name, null);
return; return;