feat(view_pool): adds a view pool of dehydrated views per protoview.

This commit is contained in:
Rado Kirov
2015-02-06 17:03:40 -08:00
parent 617206bd1c
commit 7bf5ab8f43
9 changed files with 118 additions and 3 deletions

View File

@ -39,14 +39,13 @@ export class DynamicChangeDetector extends AbstractChangeDetector {
this.formatters = formatters;
this.values = ListWrapper.createFixedSize(protoRecords.length + 1);
ListWrapper.fill(this.values, uninitialized);
this.changes = ListWrapper.createFixedSize(protoRecords.length + 1);
this.protos = protoRecords;
}
setContext(context:any) {
ListWrapper.fill(this.values, uninitialized);
this.values[0] = context;
}