style: misc minor changes

This commit is contained in:
Victor Berchet 2014-12-04 13:23:32 +01:00
parent c362f33fe4
commit ee36063fae
3 changed files with 2 additions and 3 deletions

View File

@ -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);

View File

@ -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);

View File

@ -202,7 +202,7 @@ export class View {
}
}
_collectChanges(records:List) {
_collectChanges(records:List<Record>) {
var changes = StringMapWrapper.create();
for(var i = 0; i < records.length; ++i) {
var record = records[i];