feat(change_detection): ensure that expression do not change after they have been checked

This commit is contained in:
vsavkin
2014-12-04 18:30:54 -08:00
parent d02e192951
commit 8acf9fb609
11 changed files with 123 additions and 27 deletions

View File

@ -35,6 +35,7 @@ export class ProtoRecord {
name:string;
dest:any;
groupMemento:any;
expressionAsString:string;
next:ProtoRecord;
@ -46,7 +47,8 @@ export class ProtoRecord {
arity:int,
name:string,
dest,
groupMemento) {
groupMemento,
expressionAsString:string) {
this.recordRange = recordRange;
this._mode = mode;
@ -55,6 +57,7 @@ export class ProtoRecord {
this.name = name;
this.dest = dest;
this.groupMemento = groupMemento;
this.expressionAsString = expressionAsString;
this.next = null;
// The concrete Record instantiated from this ProtoRecord
@ -341,6 +344,10 @@ export class Record {
return this.protoRecord.dest;
}
expressionAsString() {
return this.protoRecord.expressionAsString;
}
groupMemento() {
return isPresent(this.protoRecord) ? this.protoRecord.groupMemento : null;
}