Skip to content

Commit

Permalink
fix(core): do not mutate the original providers
Browse files Browse the repository at this point in the history
  • Loading branch information
trotyl committed Apr 8, 2018
1 parent 06d81d0 commit 5793b21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/iterable-differs/iterable-differs.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ export class IterableDiffersModule {
iterableDiffers: IterableDiffers,
@Inject(ITERABLE_DIFFER_FACTORIES) extraIterableDifferFactories: IterableDifferFactory[],
) {
iterableDiffers.factories.unshift(...extraIterableDifferFactories.reverse());
iterableDiffers.factories.unshift(...extraIterableDifferFactories.slice().reverse());
}
}

0 comments on commit 5793b21

Please sign in to comment.