feat(perf): port table scrolling benchmark to Angular 2
This commit is contained in:
3
modules/angular2/src/core/compiler/view.js
vendored
3
modules/angular2/src/core/compiler/view.js
vendored
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user