Remove removedSubnodes instead of insertedSubnodes

This commit is contained in:
Levi McCallum
2016-02-10 11:43:29 -08:00
parent 50a41df7b0
commit 870cc405e6

View File

@@ -792,7 +792,7 @@ static inline void filterNodesInLayoutAtIndexesWithIntersectingNodes(
- (void)__implicitlyRemoveSubnodes
{
for (NSInteger i = 0; i < [_insertedSubnodes count]; i++) {
for (NSInteger i = 0; i < [_removedSubnodes count]; i++) {
[_removedSubnodes[i] removeFromSupernode];
}
}