@@ -116,8 +116,9 @@ export class ProtoViewFactory {
116
116
var sortedDirectives = ListWrapper . map ( elementBinders , b => new SortedDirectives ( b . directives , directives ) ) ;
117
117
118
118
var variableBindings = this . _createVariableBindings ( renderProtoView ) ;
119
- var protoLocals = this . _createProtoLocals ( renderProtoView ) ;
119
+ var protoLocals = this . _createProtoLocals ( variableBindings ) ;
120
120
var variableNames = this . _createVariableNames ( parentProtoView , protoLocals ) ;
121
+
121
122
var protoChangeDetector = this . _createProtoChangeDetector ( elementBinders , sortedDirectives , componentBinding , variableNames ) ;
122
123
var protoView = new AppProtoView ( renderProtoView . render , protoChangeDetector , variableBindings , protoLocals , variableNames ) ;
123
124
@@ -128,9 +129,9 @@ export class ProtoViewFactory {
128
129
return protoView ;
129
130
}
130
131
131
- _createProtoLocals ( renderProtoView ) :Map {
132
+ _createProtoLocals ( varBindings : Map ) :Map {
132
133
var protoLocals = MapWrapper . create ( ) ;
133
- MapWrapper . forEach ( renderProtoView . variableBindings , ( mappedName , varName ) => {
134
+ MapWrapper . forEach ( varBindings , ( mappedName , varName ) => {
134
135
MapWrapper . set ( protoLocals , mappedName , null ) ;
135
136
} ) ;
136
137
return protoLocals ;
@@ -141,6 +142,11 @@ export class ProtoViewFactory {
141
142
MapWrapper . forEach ( renderProtoView . variableBindings , ( mappedName , varName ) => {
142
143
MapWrapper . set ( variableBindings , varName , mappedName ) ;
143
144
} ) ;
145
+ ListWrapper . forEach ( renderProtoView . elementBinders , binder => {
146
+ MapWrapper . forEach ( binder . variableBindings , ( mappedName , varName ) => {
147
+ MapWrapper . set ( variableBindings , varName , mappedName ) ;
148
+ } ) ;
149
+ } ) ;
144
150
return variableBindings ;
145
151
}
146
152
0 commit comments