feat(perf): port table scrolling benchmark to Angular 2

This commit is contained in:
Yegor Jbanov
2015-02-05 18:33:57 -08:00
parent 93c18f5396
commit fcbdf02767
21 changed files with 1119 additions and 11 deletions

View File

@ -411,7 +411,8 @@ export class ProtoView {
// view might get dehydrated, in between the event queuing up and
// firing.
if (view.hydrated()) {
MapWrapper.set(locals, '\$event', event);
// HACK
MapWrapper.set(locals, `$event`, event);
var context = new ContextWithVariableBindings(view.context, locals);
expr.eval(context);
}