From 26d5d17ebebdc7760e7c2b57999ea948359b0b55 Mon Sep 17 00:00:00 2001 From: Victor Berchet Date: Tue, 26 May 2015 09:18:06 +0200 Subject: [PATCH] style: fix clang-format glitches --- .../src/change_detection/change_detection.ts | 15 +++++++-------- .../change_detection/dynamic_change_detector.ts | 2 +- .../src/change_detection/proto_change_detector.ts | 2 +- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/modules/angular2/src/change_detection/change_detection.ts b/modules/angular2/src/change_detection/change_detection.ts index 713c41a809..7e9e6507cf 100644 --- a/modules/angular2/src/change_detection/change_detection.ts +++ b/modules/angular2/src/change_detection/change_detection.ts @@ -19,44 +19,43 @@ import {isPresent, BaseException} from 'angular2/src/facade/lang'; * * @exportedAs angular2/pipes */ -export var keyValDiff: List < PipeFactory >= [new KeyValueChangesFactory(), new NullPipeFactory()]; +export var keyValDiff: List = [new KeyValueChangesFactory(), new NullPipeFactory()]; /** * Structural diffing for `Iterable` types such as `Array`s. * * @exportedAs angular2/pipes */ -export var iterableDiff: List < - PipeFactory >= [new IterableChangesFactory(), new NullPipeFactory()]; +export var iterableDiff: List = [new IterableChangesFactory(), new NullPipeFactory()]; /** * Async binding to such types as Observable. * * @exportedAs angular2/pipes */ -export var async: List < - PipeFactory >= [new ObservablePipeFactory(), new PromisePipeFactory(), new NullPipeFactory()]; +export var async: List< + PipeFactory> = [new ObservablePipeFactory(), new PromisePipeFactory(), new NullPipeFactory()]; /** * Uppercase text transform. * * @exportedAs angular2/pipes */ -export var uppercase: List < PipeFactory >= [new UpperCaseFactory(), new NullPipeFactory()]; +export var uppercase: List = [new UpperCaseFactory(), new NullPipeFactory()]; /** * Lowercase text transform. * * @exportedAs angular2/pipes */ -export var lowercase: List < PipeFactory >= [new LowerCaseFactory(), new NullPipeFactory()]; +export var lowercase: List = [new LowerCaseFactory(), new NullPipeFactory()]; /** * Json stringify transform. * * @exportedAs angular2/pipes */ -export var json: List < PipeFactory >= [new JsonPipeFactory(), new NullPipeFactory()]; +export var json: List = [new JsonPipeFactory(), new NullPipeFactory()]; export var defaultPipes = { "iterableDiff": iterableDiff, diff --git a/modules/angular2/src/change_detection/dynamic_change_detector.ts b/modules/angular2/src/change_detection/dynamic_change_detector.ts index 91e5001e06..67ff46c897 100644 --- a/modules/angular2/src/change_detection/dynamic_change_detector.ts +++ b/modules/angular2/src/change_detection/dynamic_change_detector.ts @@ -76,7 +76,7 @@ export class DynamicChangeDetector extends AbstractChangeDetector { hydrated(): boolean { return this.values[0] !== uninitialized; } detectChangesInRecords(throwOnChange: boolean) { - var protos: List < ProtoRecord >= this.protos; + var protos: List = this.protos; var changes = null; var isChanged = false; diff --git a/modules/angular2/src/change_detection/proto_change_detector.ts b/modules/angular2/src/change_detection/proto_change_detector.ts index 0720784ca6..79e16afa34 100644 --- a/modules/angular2/src/change_detection/proto_change_detector.ts +++ b/modules/angular2/src/change_detection/proto_change_detector.ts @@ -102,7 +102,7 @@ class ProtoRecordBuilder { constructor() { this.records = []; } - addAst(b: BindingRecord, variableNames: List < string >= null) { + addAst(b: BindingRecord, variableNames: List = null) { var oldLast = ListWrapper.last(this.records); if (isPresent(oldLast) && oldLast.bindingRecord.directiveRecord == b.directiveRecord) { oldLast.lastInDirective = false;