From ee36063fae33a8608257e25cb406f1cd898bb35a Mon Sep 17 00:00:00 2001 From: Victor Berchet Date: Thu, 4 Dec 2014 13:23:32 +0100 Subject: [PATCH] style: misc minor changes --- modules/change_detection/src/record.js | 1 - modules/change_detection/test/change_detector_spec.js | 2 +- modules/core/src/compiler/view.js | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/change_detection/src/record.js b/modules/change_detection/src/record.js index 097849c564..3ec75c9d58 100644 --- a/modules/change_detection/src/record.js +++ b/modules/change_detection/src/record.js @@ -239,7 +239,6 @@ export class Record { } _updateDestination() { - // todo(vicb): compute this info only once in ctor ? (add a bit in mode not to grow the mem req) if (this.dest instanceof Record) { if (isPresent(this.protoRecord.dest.position)) { this.dest.updateArg(this.currentValue, this.protoRecord.dest.position); diff --git a/modules/change_detection/test/change_detector_spec.js b/modules/change_detection/test/change_detector_spec.js index c0a10efa70..623a76b571 100644 --- a/modules/change_detection/test/change_detector_spec.js +++ b/modules/change_detection/test/change_detector_spec.js @@ -417,7 +417,7 @@ export function main() { var prr = new ProtoRecordRange(); prr.addRecordsFromAST(ast("a()"), "a", 1); prr.addRecordsFromAST(ast("b()"), "b", 2); - prr.addRecordsFromAST(ast("c()"), "b", 2); + prr.addRecordsFromAST(ast("c()"), "c", 2); var dispatcher = new TestDispatcher(); var rr = prr.instantiate(dispatcher, null); diff --git a/modules/core/src/compiler/view.js b/modules/core/src/compiler/view.js index 29df335aff..3c6ab14f50 100644 --- a/modules/core/src/compiler/view.js +++ b/modules/core/src/compiler/view.js @@ -202,7 +202,7 @@ export class View { } } - _collectChanges(records:List) { + _collectChanges(records:List) { var changes = StringMapWrapper.create(); for(var i = 0; i < records.length; ++i) { var record = records[i];