joyent/node — pull request #3932 by ashtuchkin (2012-08-28 15:13:45+00:00)
Title: Remove EventEmitter#domain clobbering by 'domain' module.

Field clobbering is removed on 2 levels:
* The field itself is renamed to '_domain', according to conventions for internal field naming.
* The 'events.usingDomains' is checked so that programs that don't use 'domains' module are not affected even if they use '_domain' field.

Fixes #3922.
Test included.