Raynos/global — pull request #3 by ahdinosaur (2014-08-17 10:18:01+00:00)
Title: add EventTarget event handlers to node window

the use case is to be able to run mercury component tests in node that involve window event handlers.

i'm not sure if this commit is necessarily the best way to do this, seems hacky. i was thinking maybe we can define a more proper window in min-document, but then again maybe each of these DOM interfaces ([EventTarget](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget), [document](https://developer.mozilla.org/en-US/docs/Web/API/document), [Element](https://developer.mozilla.org/en-US/docs/Web/API/Element), [window](https://developer.mozilla.org/en-US/docs/Web/API/window), ...) should be separate modules, or i don't know.

cheers!