pusher/pusher-js — pull request #47 by btakita (2013-09-20 06:30:43+00:00)
Title: Support commonjs module scheme.

Fix for https://pusher.tenderapp.com/discussions/requests/1004-support-nodejs-jsdom-client-side-testing.

I updated the logic to protect against the module global variable being set. exports, module, & module.exports need to be truthy for this to apply.