pubnub/javascript — pull request #40 by josdejong (2014-09-16 10:38:54+00:00)
Title: Clearing poll timeouts on _reset_offline, so no handles are left open when there are no receivers registered.

Clearing poll timeouts on _reset_offline, so no handles are left open when there are no receivers registered. Without this, pubnub cannot be unloaded: these timeouts are running forever and the node.js process cannot exist or garbage collect pubnub.