Skip to content

Commit

Permalink
fix(combineLatest): Don't mutate array of observables passed to (#2276)
Browse files Browse the repository at this point in the history
combineLatest

lease enter the commit message for your changes. Lines starting
  • Loading branch information
extremeandy authored and benlesh committed Jan 13, 2017
1 parent f8ba77d commit 9b73c46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/operator/combineLatest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export function combineLatest<T, R>(this: Observable<T>, ...observables: Array<O
// if the first and only other argument besides the resultSelector is an array
// assume it's been called with `combineLatest([obs1, obs2, obs3], project)`
if (observables.length === 1 && isArray(observables[0])) {
observables = <any>observables[0];
observables = (<any>observables[0]).slice();
}

observables.unshift(this);
Expand Down

0 comments on commit 9b73c46

Please sign in to comment.