made the exports check safe

This commit is contained in:
Tony Lukasavage
2011-10-18 13:27:18 -03:00
parent 0513f60b63
commit 1054e24c4f

View File

@@ -54,7 +54,7 @@
if (typeof module !== 'undefined' && module.exports) {
module.exports = _;
_._ = _;
} else if (exports !== 'undefined') {
} else if (typeof exports !== 'undefined' && exports) {
exports._ = _;
} else {
// Exported as a string, for Closure Compiler "advanced" mode.