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
+1 -3
View File
@@ -21,8 +21,6 @@ import {ControlGroupDirective, ControlDirective, Control, ControlGroup, Optional
import * as validators from 'angular2/src/forms/validators';
import {reflector} from 'angular2/src/reflection/reflection';
export function main() {
function detectChanges(view) {
view.changeDetector.detectChanges();
@@ -50,7 +48,7 @@ export function main() {
}));
compiler.compile(componentType).then((pv) => {
var view = pv.instantiate(null, null, reflector);
var view = pv.instantiate(null, null);
view.hydrate(new Injector([]), null, context);
detectChanges(view);
callback(view);