Skip to content

Conversation

@dmarcos
Copy link
Member

@dmarcos dmarcos commented Feb 16, 2017

…compared with itself through deepEqual

This manifested during a-saturday-night development. If we have a schema of the following form:

{
...
el: { type: 'selector' }
...
}

We end up on an infinite recursion on deepEqual when doing:

el.setAttribute('myComponent', 'el', "#entityId");
el.setAttribute('myComponent', 'el', "#entityId");

the element #entityId will be passed to deepEqual(entityIdEl, entityIdEl). Entity components hold references to the entity element creating a circular reference preventing deepEqual to find a stop condition.

@ngokevin ngokevin merged commit d8e3977 into master Feb 25, 2017
@ngokevin ngokevin deleted the fixDeepEqual branch February 25, 2017 01:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

3 participants