Skip to content

Commit

Permalink
fix(concatAll): use higher-order lettable version of concatAll
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonaden committed Sep 28, 2017
1 parent e8d8c08 commit 60c96ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/operator/concatAll.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Observable } from '../Observable';
import { Subscribable } from '../Observable';
import { MergeAllOperator } from './mergeAll';
import { concatAll as higherOrder } from '../operators/concatAll';

/* tslint:disable:max-line-length */
export function concatAll<T>(this: Observable<T>): T;
Expand Down Expand Up @@ -56,5 +56,5 @@ export function concatAll<T, R>(this: Observable<T>): Subscribable<R>;
* @owner Observable
*/
export function concatAll<T>(this: Observable<T>): T {
return <any>this.lift<any>(new MergeAllOperator<T>(1));
return <any>higherOrder()(this);
}

0 comments on commit 60c96ab

Please sign in to comment.