Added addChildren() function as a more-optimal replacement for manageChildren for common use cases.

Reviewed By: jspahrsummers

Differential Revision: D2707930

fb-gh-sync-id: c44219bf9af943cad5b57f370656c1bcac732cd9
This commit is contained in:
Nick Lockwood
2015-12-03 10:33:03 -08:00
committed by facebook-github-bot-9
parent ecdc3429cd
commit 9a47ca1cc9
4 changed files with 95 additions and 32 deletions

View File

@@ -53,6 +53,7 @@ var dangerouslyProcessChildrenUpdates = function(childrenUpdates, markupList) {
(updates.addChildTags || (updates.addChildTags = [])).push(tag);
}
}
// Note this enumeration order will be different on V8! Move `byContainerTag`
// to a sparse array as soon as we confirm there are not horrible perf
// penalties.