cleanup(view): remove unused code

This commit is contained in:
vsavkin 2014-12-05 19:01:37 -08:00
parent 33b47bd5d4
commit 984ff9bf1b
2 changed files with 0 additions and 28 deletions

View File

@ -31,7 +31,6 @@ export class View {
/// When the view is part of render tree, the DocumentFragment is empty, which is why we need /// When the view is part of render tree, the DocumentFragment is empty, which is why we need
/// to keep track of the nodes. /// to keep track of the nodes.
nodes:List<Node>; nodes:List<Node>;
onChangeDispatcher:OnChangeDispatcher;
componentChildViews: List<View>; componentChildViews: List<View>;
viewPorts: List<ViewPort>; viewPorts: List<ViewPort>;
preBuiltObjects: List<PreBuiltObjects>; preBuiltObjects: List<PreBuiltObjects>;
@ -45,7 +44,6 @@ export class View {
this.nodes = nodes; this.nodes = nodes;
this.elementInjectors = elementInjectors; this.elementInjectors = elementInjectors;
this.rootElementInjectors = rootElementInjectors; this.rootElementInjectors = rootElementInjectors;
this.onChangeDispatcher = null;
this.textNodes = textNodes; this.textNodes = textNodes;
this.bindElements = bindElements; this.bindElements = bindElements;
this.recordRange = protoRecordRange.instantiate(this, MapWrapper.create()); this.recordRange = protoRecordRange.instantiate(this, MapWrapper.create());
@ -555,24 +553,3 @@ class PropertyUpdate {
this.previousValue = previousValue; this.previousValue = previousValue;
} }
} }
//TODO(tbosch): I don't like to have done be called from a different place than notify
// notify is called by change detection, but done is called by our wrapper on detect changes.
export class OnChangeDispatcher {
_lastView:View;
_lastTarget:DirectivePropertyMemento;
constructor() {
this._lastView = null;
this._lastTarget = null;
}
notify(view:View, eTarget:DirectivePropertyMemento) {
}
done() {
}
}

View File

@ -1,18 +1,13 @@
import {FIELD} from 'facade/lang'; import {FIELD} from 'facade/lang';
import {OnChangeDispatcher} from '../compiler/view';
import {ChangeDetector} from 'change_detection/change_detector'; import {ChangeDetector} from 'change_detection/change_detector';
export class LifeCycle { export class LifeCycle {
_changeDetector:ChangeDetector; _changeDetector:ChangeDetector;
_onChangeDispatcher:OnChangeDispatcher;
constructor() { constructor() {
this._changeDetector = null; this._changeDetector = null;
this._onChangeDispatcher = null;
} }
digest() { digest() {
_changeDetector.detectChanges(); _changeDetector.detectChanges();
_onChangeDispatcher.done();
} }
} }