refactor(PropertySetter): use the global reflector

This commit is contained in:
Victor Berchet
2015-03-11 19:57:21 +01:00
parent c67194a3ef
commit 951a808e0e
20 changed files with 75 additions and 120 deletions

View File

@ -18,7 +18,7 @@ import {ComponentUrlMapper} from 'angular2/src/core/compiler/component_url_mappe
import {StyleInliner} from 'angular2/src/core/compiler/style_inliner';
import {CssProcessor} from 'angular2/src/core/compiler/css_processor';
import {Reflector, reflector} from 'angular2/src/reflection/reflection';
import {reflector} from 'angular2/src/reflection/reflection';
import {DOM} from 'angular2/src/dom/dom_adapter';
import {isPresent} from 'angular2/src/facade/lang';
import {window, document, gc} from 'angular2/src/facade/browser';
@ -171,7 +171,6 @@ function setupReflector() {
"annotations": []
});
reflector.registerType(ComponentUrlMapper, {
"factory": () => new ComponentUrlMapper(),
"parameters": [],
@ -191,12 +190,6 @@ function setupReflector() {
"annotations": []
});
reflector.registerType(Reflector, {
"factory": () => reflector,
"parameters": [],
"annotations": []
});
reflector.registerGetters({
'value': (a) => a.value,
'left': (a) => a.left,