@@ -68,10 +68,10 @@ export function main() {
6868
6969 function injector ( bindings , appInjector = null , props = null ) {
7070 if ( isBlank ( appInjector ) ) appInjector = new Injector ( [ ] ) ;
71- if ( isBlank ( props ) ) props = { } ;
71+ if ( isBlank ( props ) ) props = { "view" : null } ;
7272
7373 var proto = new ProtoElementInjector ( null , 0 , bindings ) ;
74- var inj = proto . instantiate ( { view : props [ "view" ] , parentElementInjector : null } ) ;
74+ var inj = proto . instantiate ( null , props [ "view" ] ) ;
7575 inj . instantiateDirectives ( appInjector ) ;
7676 return inj ;
7777 }
@@ -80,11 +80,11 @@ export function main() {
8080 var inj = new Injector ( [ ] ) ;
8181
8282 var protoParent = new ProtoElementInjector ( null , 0 , parentBindings ) ;
83- var parent = protoParent . instantiate ( { view : null , parentElementInjector : null } ) ;
83+ var parent = protoParent . instantiate ( null , null ) ;
8484 parent . instantiateDirectives ( inj ) ;
8585
8686 var protoChild = new ProtoElementInjector ( protoParent , 1 , childBindings ) ;
87- var child = protoChild . instantiate ( { view : null , parentElementInjector : parent } ) ;
87+ var child = protoChild . instantiate ( parent , null ) ;
8888 child . instantiateDirectives ( inj ) ;
8989
9090 return child ;
@@ -97,9 +97,9 @@ export function main() {
9797 var protoChild1 = new ProtoElementInjector ( protoParent , 1 , [ ] ) ;
9898 var protoChild2 = new ProtoElementInjector ( protoParent , 2 , [ ] ) ;
9999
100- var p = protoParent . instantiate ( { view : null , parentElementInjector : null } ) ;
101- var c1 = protoChild1 . instantiate ( { view : null , parentElementInjector : p } ) ;
102- var c2 = protoChild2 . instantiate ( { view : null , parentElementInjector : p } ) ;
100+ var p = protoParent . instantiate ( null , null ) ;
101+ var c1 = protoChild1 . instantiate ( p , null ) ;
102+ var c2 = protoChild2 . instantiate ( p , null ) ;
103103
104104 expect ( humanize ( p , [
105105 [ p , 'parent' ] ,
0 commit comments