Skip to content

Commit a6736ff

Browse files
author
Tim Blasi
committed
perf(change detection): Assign this.locals in change detector ctor
Set `this.locals = null;` in the ctor of generated change detector classes to prevent the class "shape" from changing on `hydrate`.
1 parent 894a0f0 commit a6736ff

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/angular2/src/change_detection/change_detection_jit_generator.es6

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ ${DISPATCHER_ACCESSOR} = dispatcher;
6464
${PIPE_REGISTRY_ACCESSOR} = pipeRegistry;
6565
${PROTOS_ACCESSOR} = protos;
6666
${MEMENTOS_ACCESSOR} = directiveMementos;
67+
${LOCALS_ACCESSOR} = null;
6768
${fieldsDefinitions}
6869
}
6970

0 commit comments

Comments
 (0)