feat(view): add onChange implementation to view.

This commit is contained in:
Rado Kirov
2014-10-27 23:16:31 -07:00
parent e1c84e02f8
commit b0c9d05ea7
7 changed files with 162 additions and 52 deletions

View File

@ -8,7 +8,7 @@ export function run () {
var appInjector = new Injector([]);
var bindings = [A, B, C];
var proto = new ProtoElementInjector(null, bindings, []);
var proto = new ProtoElementInjector(null, bindings, [], false);
for (var i = 0; i < ITERATIONS; ++i) {
var ei = proto.instantiate({view:null});
ei.instantiateDirectives(appInjector);
@ -31,4 +31,4 @@ class C {
constructor(a:A, b:B) {
count++;
}
}
}

View File

@ -16,7 +16,7 @@ export function run () {
], false)];
var proto = new ProtoElementInjector(null, bindings, []);
var proto = new ProtoElementInjector(null, bindings, [], false);
for (var i = 0; i < ITERATIONS; ++i) {
var ei = proto.instantiate({view:null});
ei.instantiateDirectives(appInjector);

View File

@ -8,7 +8,7 @@ export function run () {
var appInjector = new Injector([]);
var bindings = [A, B, C];
var proto = new ProtoElementInjector(null, bindings, []);
var proto = new ProtoElementInjector(null, bindings, [], false);
var ei = proto.instantiate({view:null});
for (var i = 0; i < ITERATIONS; ++i) {