@@ -12,7 +12,6 @@ import {NgElement} from 'angular2/src/core/dom/element';
1212import { LightDom , SourceLightDom , DestinationLightDom } from 'angular2/src/core/compiler/shadow_dom_emulation/light_dom' ;
1313import { Directive } from 'angular2/src/core/annotations/annotations' ;
1414import { BindingPropagationConfig } from 'angular2/src/core/compiler/binding_propagation_config' ;
15- import { reflector } from 'angular2/src/reflection/reflection' ;
1615import { DynamicProtoChangeDetector } from 'angular2/change_detection' ;
1716
1817@proxy
@@ -131,7 +130,7 @@ export function main() {
131130 if ( isBlank ( lightDomAppInjector ) ) lightDomAppInjector = new Injector ( [ ] ) ;
132131
133132 var proto = new ProtoElementInjector ( null , 0 , bindings , isPresent ( shadowDomAppInjector ) ) ;
134- var inj = proto . instantiate ( null , null , reflector ) ;
133+ var inj = proto . instantiate ( null , null ) ;
135134 var preBuilt = isPresent ( preBuiltObjects ) ? preBuiltObjects : defaultPreBuiltObjects ;
136135
137136 inj . instantiateDirectives ( lightDomAppInjector , shadowDomAppInjector , preBuilt ) ;
@@ -144,12 +143,12 @@ export function main() {
144143 var inj = new Injector ( [ ] ) ;
145144
146145 var protoParent = new ProtoElementInjector ( null , 0 , parentBindings ) ;
147- var parent = protoParent . instantiate ( null , null , reflector ) ;
146+ var parent = protoParent . instantiate ( null , null ) ;
148147
149148 parent . instantiateDirectives ( inj , null , parentPreBuildObjects ) ;
150149
151150 var protoChild = new ProtoElementInjector ( protoParent , 1 , childBindings , false , 1 ) ;
152- var child = protoChild . instantiate ( parent , null , reflector ) ;
151+ var child = protoChild . instantiate ( parent , null ) ;
153152 child . instantiateDirectives ( inj , null , defaultPreBuiltObjects ) ;
154153
155154 return child ;
@@ -162,11 +161,11 @@ export function main() {
162161 var shadowInj = inj . createChild ( [ ] ) ;
163162
164163 var protoParent = new ProtoElementInjector ( null , 0 , hostBindings , true ) ;
165- var host = protoParent . instantiate ( null , null , reflector ) ;
164+ var host = protoParent . instantiate ( null , null ) ;
166165 host . instantiateDirectives ( inj , shadowInj , hostPreBuildObjects ) ;
167166
168167 var protoChild = new ProtoElementInjector ( protoParent , 0 , shadowBindings , false , 1 ) ;
169- var shadow = protoChild . instantiate ( null , host , reflector ) ;
168+ var shadow = protoChild . instantiate ( null , host ) ;
170169 shadow . instantiateDirectives ( shadowInj , null , null ) ;
171170
172171 return shadow ;
@@ -199,9 +198,9 @@ export function main() {
199198 var protoChild1 = new ProtoElementInjector ( protoParent , 1 , [ ] ) ;
200199 var protoChild2 = new ProtoElementInjector ( protoParent , 2 , [ ] ) ;
201200
202- var p = protoParent . instantiate ( null , null , reflector ) ;
203- var c1 = protoChild1 . instantiate ( p , null , reflector ) ;
204- var c2 = protoChild2 . instantiate ( p , null , reflector ) ;
201+ var p = protoParent . instantiate ( null , null ) ;
202+ var c1 = protoChild1 . instantiate ( p , null ) ;
203+ var c2 = protoChild2 . instantiate ( p , null ) ;
205204
206205 expect ( humanize ( p , [
207206 [ p , 'parent' ] ,
@@ -216,8 +215,8 @@ export function main() {
216215 var protoParent = new ProtoElementInjector ( null , 0 , [ ] ) ;
217216 var protoChild = new ProtoElementInjector ( protoParent , 1 , [ ] , false , distance ) ;
218217
219- var p = protoParent . instantiate ( null , null , reflector ) ;
220- var c = protoChild . instantiate ( p , null , reflector ) ;
218+ var p = protoParent . instantiate ( null , null ) ;
219+ var c = protoChild . instantiate ( p , null ) ;
221220
222221 expect ( c . directParent ( ) ) . toEqual ( p ) ;
223222 } ) ;
@@ -227,8 +226,8 @@ export function main() {
227226 var protoParent = new ProtoElementInjector ( null , 0 , [ ] ) ;
228227 var protoChild = new ProtoElementInjector ( protoParent , 1 , [ ] , false , distance ) ;
229228
230- var p = protoParent . instantiate ( null , null , reflector ) ;
231- var c = protoChild . instantiate ( p , null , reflector ) ;
229+ var p = protoParent . instantiate ( null , null ) ;
230+ var c = protoChild . instantiate ( p , null ) ;
232231
233232 expect ( c . directParent ( ) ) . toEqual ( null ) ;
234233 } ) ;
@@ -435,7 +434,7 @@ export function main() {
435434 } ) ;
436435
437436 it ( 'should return viewContainer' , function ( ) {
438- var viewContainer = new ViewContainer ( null , null , null , null , null , null ) ;
437+ var viewContainer = new ViewContainer ( null , null , null , null , null ) ;
439438 var inj = injector ( [ ] , null , null , new PreBuiltObjects ( null , null , viewContainer , null , null ) ) ;
440439
441440 expect ( inj . get ( ViewContainer ) ) . toEqual ( viewContainer ) ;
0 commit comments