facebook/react — pull request #1415 by jkimbo (2014-04-16 10:22:40+00:00)
Title: Create dummyNode at run time instead of include time

I ran into a problem while testing using jsdom, where it would throw a "Wrong document" error when inserting a child node. I traced it back to the fact that the `dummyNode` variable is instantiated when the module is required and so its document can potentially be different to the one that the component is rendered to. The easiest fix I could find was just to create the dummyNode at run time instead. Not sure if this has any performance implications.

First time contributor so let me know if I've missed anything!