2015-02-02 16:25:34 -08:00
|
|
|
import {List} from 'facade/src/collection';
|
2015-01-14 13:51:16 -08:00
|
|
|
|
|
|
|
export class ChangeRecord {
|
|
|
|
bindingMemento:any;
|
|
|
|
change:any;
|
|
|
|
|
|
|
|
constructor(bindingMemento, change) {
|
|
|
|
this.bindingMemento = bindingMemento;
|
|
|
|
this.change = change;
|
|
|
|
}
|
|
|
|
|
|
|
|
//REMOVE IT
|
|
|
|
get currentValue() {
|
|
|
|
return this.change.currentValue;
|
|
|
|
}
|
|
|
|
|
|
|
|
get previousValue() {
|
|
|
|
return this.change.previousValue;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export class ChangeDispatcher {
|
|
|
|
onRecordChange(groupMemento, records:List<ChangeRecord>) {}
|
|
|
|
}
|
|
|
|
|
|
|
|
export class ChangeDetector {
|
|
|
|
parent:ChangeDetector;
|
|
|
|
|
|
|
|
addChild(cd:ChangeDetector) {}
|
|
|
|
removeChild(cd:ChangeDetector) {}
|
|
|
|
remove() {}
|
|
|
|
setContext(context:any) {}
|
|
|
|
|
|
|
|
detectChanges() {}
|
|
|
|
checkNoChanges() {}
|
|
|
|
}
|