From c60ba7a72f8b59bb9727c84e5b67bdaecd9e847e Mon Sep 17 00:00:00 2001 From: Victor Berchet Date: Mon, 31 Oct 2016 17:26:54 -0700 Subject: [PATCH] refactor(core): remove ListWrapper from i18n --- modules/@angular/compiler/src/i18n/serializers/xliff.ts | 3 +-- modules/@angular/compiler/src/i18n/serializers/xmb.ts | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/@angular/compiler/src/i18n/serializers/xliff.ts b/modules/@angular/compiler/src/i18n/serializers/xliff.ts index 31962fc098..ac3b9bd786 100644 --- a/modules/@angular/compiler/src/i18n/serializers/xliff.ts +++ b/modules/@angular/compiler/src/i18n/serializers/xliff.ts @@ -6,7 +6,6 @@ * found in the LICENSE file at https://angular.io/license */ -import {ListWrapper} from '../../facade/collection'; import * as ml from '../../ml_parser/ast'; import {HtmlParser} from '../../ml_parser/html_parser'; import {InterpolationConfig} from '../../ml_parser/interpolation_config'; @@ -164,7 +163,7 @@ class _WriteVisitor implements i18n.Visitor { serialize(nodes: i18n.Node[]): xml.Node[] { this._isInIcu = false; - return ListWrapper.flatten(nodes.map(node => node.visit(this))); + return [].concat(...nodes.map(node => node.visit(this))); } } diff --git a/modules/@angular/compiler/src/i18n/serializers/xmb.ts b/modules/@angular/compiler/src/i18n/serializers/xmb.ts index 20cea88ec1..e510197fa5 100644 --- a/modules/@angular/compiler/src/i18n/serializers/xmb.ts +++ b/modules/@angular/compiler/src/i18n/serializers/xmb.ts @@ -6,7 +6,6 @@ * found in the LICENSE file at https://angular.io/license */ -import {ListWrapper} from '../../facade/collection'; import * as html from '../../ml_parser/ast'; import {decimalDigest} from '../digest'; import * as i18n from '../i18n_ast'; @@ -123,7 +122,7 @@ class _Visitor implements i18n.Visitor { } serialize(nodes: i18n.Node[]): xml.Node[] { - return ListWrapper.flatten(nodes.map(node => node.visit(this))); + return [].concat(...nodes.map(node => node.visit(this))); } }