Skip to content

Commit

Permalink
Update UMD Shim to be resilient to HTMLElement global pollution
Browse files Browse the repository at this point in the history
Please see https://github.com/umdjs/umd/pull/63/files and umdjs/umd#35 for more information, but
this change prevents an HTML element with an id of `module` from cuasing the UMD shim to incorrectly detect the enivornment as node.
  • Loading branch information
mikesherov committed Jul 21, 2015
1 parent 2757a0d commit ee43339
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spin.js
Expand Up @@ -32,7 +32,7 @@
;(function (root, factory) {

/* CommonJS */
if (typeof exports == 'object') module.exports = factory()
if (typeof module == 'object' && module.exports) module.exports = factory()

/* AMD module */
else if (typeof define == 'function' && define.amd) define(factory)
Expand Down

0 comments on commit ee43339

Please sign in to comment.