This repository was archived by the owner on Mar 13, 2018. It is now read-only.

Description
At issue is this code:
if (typeof exports !== 'undefined') {
if (typeof module !== 'undefined' && module.exports) {
expose = exports = module.exports;
}
expose = exports;
}
If there is an exports global, expose gets assigned to that global. It looks like an attempt at putting observe-js into modules.exports when used as a Node.js module, which is good, but it doesn't actually work.
I was bit when I had a <div id="exports"> on my page. This created a global named exports (thanks to this crazy "feature"), so this code thought I was running node and stuffed the API into the exports global.
Perhaps this is a symptom of #66 - this stuff shouldn't be put into globals anyway.