56 lines
1.2 KiB
JavaScript
56 lines
1.2 KiB
JavaScript
import {List} from 'angular2/src/facade/collection';
|
|
import {Locals} from './parser/locals';
|
|
import {AST} from './parser/ast';
|
|
import {DEFAULT} from './constants';
|
|
|
|
export class ProtoChangeDetector {
|
|
addAst(ast:AST, bindingMemento:any, directiveMemento:any = null){}
|
|
instantiate(dispatcher:any, bindingRecords:List, variableBindings:List, directiveMementos:List):ChangeDetector{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
export class ChangeDetection {
|
|
createProtoChangeDetector(name:string, changeControlStrategy:string=DEFAULT):ProtoChangeDetector{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
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 {
|
|
invokeMementoFor(memento:any, value) {}
|
|
}
|
|
|
|
export class ChangeDetector {
|
|
parent:ChangeDetector;
|
|
mode:string;
|
|
|
|
addChild(cd:ChangeDetector) {}
|
|
removeChild(cd:ChangeDetector) {}
|
|
remove() {}
|
|
hydrate(context:any, locals:Locals, directives:any) {}
|
|
dehydrate() {}
|
|
markPathToRootAsCheckOnce() {}
|
|
|
|
detectChanges() {}
|
|
checkNoChanges() {}
|
|
}
|