More hardy node environment check

This commit is contained in:
Blake Embrey 2014-12-17 18:29:45 -08:00
parent 053288f2fe
commit cc21769a06

View File

@ -1442,7 +1442,7 @@ var escapeCharacters_callback = function(wholeMatch,m1) {
// export
if (typeof module !== 'undefined') module.exports = Showdown;
if (typeof module !== 'undefined' && module.exports) module.exports = Showdown;
// stolen from AMD branch of underscore
// AMD define happens at the end for compatibility with AMD loaders