refactor: simplify arrow functions (#12057)

This commit is contained in:
Victor Berchet
2016-10-04 15:57:37 -07:00
committed by Chuck Jazdzewski
parent 6f7ed32154
commit 0528dcb9dc
25 changed files with 43 additions and 51 deletions

View File

@ -758,8 +758,7 @@ function declareTests({useJit}: {useJit: boolean}) {
describe('*ngFor', () => {
let tpl = '<div *ngFor="let item of items" @trigger>{{ item }}</div>';
let getText =
(node: any) => { return node.innerHTML ? node.innerHTML : node.children[0].data; };
let getText = (node: any) => node.innerHTML ? node.innerHTML : node.children[0].data;
let assertParentChildContents = (parent: any, content: string) => {
var values: string[] = [];