feat(view): reimplemented property setters using change detection

This commit is contained in:
vsavkin
2015-04-21 11:47:53 -07:00
parent 8a92a1f13e
commit 8ccafb0524
36 changed files with 510 additions and 469 deletions

View File

@ -12,6 +12,7 @@ import {
JitChangeDetection,
BindingRecord,
DirectiveRecord,
DirectiveIndex,
DEFAULT
} from 'angular2/change_detection';
@ -191,7 +192,7 @@ function setUpChangeDetection(changeDetection:ChangeDetection, iterations, objec
var proto = changeDetection.createProtoChangeDetector("proto");
var directiveRecord = new DirectiveRecord(0, 0, false, false, DEFAULT);
var directiveRecord = new DirectiveRecord(new DirectiveIndex(0, 0), false, false, DEFAULT);
var bindings = [
BindingRecord.createForDirective(parser.parseBinding('field0', null), "field0", reflector.setter("field0"), directiveRecord),
BindingRecord.createForDirective(parser.parseBinding('field1', null), "field1", reflector.setter("field1"), directiveRecord),