Skip to content

Commit

Permalink
chore(): comment out debug statements
Browse files Browse the repository at this point in the history
  • Loading branch information
tlancina committed Mar 4, 2016
1 parent c48a851 commit f360827
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/plugins/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,21 +72,21 @@ function callCordovaPlugin(pluginObj:any, methodName:string, args:any[], opts:an
return;
}

console.log('Cordova calling', pluginObj.name, methodName, args);
// console.log('Cordova calling', pluginObj.name, methodName, args);

// TODO: Illegal invocation needs window context
return get(window, pluginObj.pluginRef)[methodName].apply(pluginInstance, args);
}

function getPromise(cb) {
if(window.Promise) {
console.log('Native promises available...');
// console.log('Native promises available...');
return new Promise((resolve, reject) => {
cb(resolve, reject);
})
} else if(window.angular) {
let $q = window.angular.injector(['ng']).get('$q');
console.log('Loaded $q', $q);
// console.log('Loaded $q', $q);
return $q((resolve, reject) => {
cb(resolve, reject);
});
Expand All @@ -113,7 +113,7 @@ function wrapObservable(pluginObj:any, methodName:string, args:any[], opts:any =
return get(window, pluginObj.pluginRef)[opts.clearFunction].call(pluginObj, pluginResult);
} catch(e) {
console.warn('Unable to clear the previous observable watch for', pluginObj.name, methodName);
console.log(e);
console.error(e);
}
}
});
Expand Down Expand Up @@ -174,7 +174,7 @@ export function RequiresPlugin(target: Function, key: string, descriptor: TypedP
let originalMethod = descriptor.value;

descriptor.value = function(...args: any[]) {
console.log('Calling', this);
// console.log('Calling', this);
if(!window.cordova) {
cordovaWarn(this.name, null);
return;
Expand Down

0 comments on commit f360827

Please sign in to comment.