From 9e7363f6861dbab1cfa894d6ab06ff278595b859 Mon Sep 17 00:00:00 2001 From: Tim Blasi Date: Wed, 29 Jul 2015 15:34:56 -0700 Subject: [PATCH] refactor(benchmarks): Remove unnecessary style setter Remove `style` setter that is no longer used / necessary. Closes #3375 --- .../benchmarks/src/naive_infinite_scroll/index.ts | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/modules/benchmarks/src/naive_infinite_scroll/index.ts b/modules/benchmarks/src/naive_infinite_scroll/index.ts index c216646384..5242a4a0d2 100644 --- a/modules/benchmarks/src/naive_infinite_scroll/index.ts +++ b/modules/benchmarks/src/naive_infinite_scroll/index.ts @@ -1,7 +1,6 @@ import {MapWrapper} from 'angular2/src/facade/collection'; import {bootstrap} from 'angular2/bootstrap'; -import {reflector} from 'angular2/src/reflection/reflection'; import {App} from './app'; @@ -10,19 +9,8 @@ import {bind} from 'angular2/di'; export function main() { bootstrap(App, createBindings()); - setupReflector(); } function createBindings(): List { return [bind(APP_VIEW_POOL_CAPACITY).toValue(100000)]; } - -export function setupReflector() { - // TODO(kegluneq): Generate this. - reflector.registerSetters({ - 'style': (o, m) => { - // HACK - MapWrapper.forEach(m, function(v, k) { o.style.setProperty(k, v); }); - } - }); -}