refactor(benchmarks): Remove unnecessary style setter
Remove `style` setter that is no longer used / necessary. Closes #3375
This commit is contained in:
parent
2768158eaf
commit
9e7363f686
|
@ -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); });
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue