gabceb/jquery-browser-plugin — pull request #55 by mwiencek (2014-12-24 20:16:35+00:00)
Title: Support for node/browserify

Fixes two compatibility issues:

1. Inside wrapped browserify modules, `this` does not refer to `window`,
it's the `exports` object. Since it doesn't really make sense to use
this plugin in environments that don't have a window.navigator object,
the code now just references 'window' directly.

2. The plugin did a global export if AMD wasn't detected, which assumed
there was a global jQuery object. The added `module.exports`-detection
uses `require` to pull in jQuery instead.