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

@ -20,7 +20,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';
function setup() {
reflector.registerType(app.HelloCmp, {
@ -170,12 +170,6 @@ function setup() {
"annotations": []
});
reflector.registerType(Reflector, {
"factory": () => reflector,
"parameters": [],
"annotations": []
});
reflector.registerGetters({
"greeting": (a) => a.greeting
});