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 {MapWrapper} from 'angular2/src/facade/collection';
|
||||||
|
|
||||||
import {bootstrap} from 'angular2/bootstrap';
|
import {bootstrap} from 'angular2/bootstrap';
|
||||||
import {reflector} from 'angular2/src/reflection/reflection';
|
|
||||||
|
|
||||||
import {App} from './app';
|
import {App} from './app';
|
||||||
|
|
||||||
@ -10,19 +9,8 @@ import {bind} from 'angular2/di';
|
|||||||
|
|
||||||
export function main() {
|
export function main() {
|
||||||
bootstrap(App, createBindings());
|
bootstrap(App, createBindings());
|
||||||
setupReflector();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function createBindings(): List {
|
function createBindings(): List {
|
||||||
return [bind(APP_VIEW_POOL_CAPACITY).toValue(100000)];
|
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…
x
Reference in New Issue
Block a user