FLUID-5812: Failures during fluid.clearComponent

Metadata

Source
FLUID-5812
Type
Bug
Priority
Major
Status
Closed
Resolution
Fixed
Assignee
Antranig Basman
Reporter
Antranig Basman
Created
2015-11-08T14:11:43.985-0500
Updated
2016-07-08T09:05:35.241-0400
Versions
N/A
Fixed Versions
  1. 2.0
Component
  1. Framework

Description

It looks like the V8 engine in node 4 is a little more aggressive than others in reordering iteration to object members, which has shaken loose some bugs in our component clear workflow. There are two bugs -
i) Clearing a component from its injected site before clearing it from its root site will trigger an error since we do not properly clear "injectedPaths" from the root component.
ii) Manually injecting a component to some site will trigger an error if it is cleared from its root site, since we still didn't fully take the plunge to move visitComponentChildren over to using instantiator records.