Merge branch 'master' into v5

This commit is contained in:
Daniel
2018-09-17 18:23:18 +02:00
parent 46b1a7385c
commit 039c6d40af
76 changed files with 846 additions and 494 deletions
+2 -2
View File
@@ -415,11 +415,11 @@ export function cordovaWarn(pluginName: string, method?: string): void {
/**
* @private
*/
export const wrap = function(
export const wrap = (
pluginObj: any,
methodName: string,
opts: CordovaOptions = {}
): Function {
) => {
return (...args: any[]) => {
if (opts.sync) {
// Sync doesn't wrap the plugin with a promise or observable, it returns the result as-is
+2 -2
View File
@@ -13,9 +13,9 @@ export function initAngular1(plugins: any) {
const serviceName = '$cordova' + name;
const cls = plugins[name];
(function(serviceName, cls, name) {
((serviceName, cls, name) => {
ngModule.service(serviceName, [
function() {
() => {
const funcs = window.angular.copy(cls);
funcs.__proto__['name'] = name;
return funcs;