From f599b0418d9e8a9137903de830c53494ca2abea7 Mon Sep 17 00:00:00 2001 From: viskin Date: Thu, 2 Mar 2017 12:34:53 +0200 Subject: [PATCH] refactor(photo-library): fixed circleci failing in 2.7.0 (#1132) * feat(photo-library): added cordova-plugin-photo-library * CordovaFiniteObservable moved to photo-library. Overloads are marked as private. * fixed typescript error in 2.7.0 --- src/plugins/plugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/plugin.ts b/src/plugins/plugin.ts index 8dde8f40..65f16850 100644 --- a/src/plugins/plugin.ts +++ b/src/plugins/plugin.ts @@ -582,7 +582,7 @@ export function CordovaFiniteObservable(opts: CordovaFiniteObservableOptions = { return { value: function(...args: any[]) { let wrappedObservable: Observable = wrap(this, methodName, opts).apply(this, args); - return new Observable((observer) => { + return new Observable((observer) => { let wrappedSubscription = wrappedObservable.subscribe({ next: (x) => { observer.next(opts.resultTransform ? opts.resultTransform(x) : x);