Fix #13789: Don't throw when module === null. Close gh-1269. Close gh-1280. (cherry-picked from eabb56c274)

This commit is contained in:
Eddie Monge 2013-05-13 13:10:36 -07:00 committed by Michał Gołębiowski
parent 272db246be
commit f57f86e6b1

View File

@ -1,4 +1,4 @@
if ( typeof module === "object" && typeof module.exports === "object" ) {
if ( typeof module === "object" && module && typeof module.exports === "object" ) {
// Expose jQuery as module.exports in loaders that implement the Node
// module pattern (including browserify). Do not create the global, since
// the user will be storing it themselves locally, and globals are frowned