Simplify CommonJS UMD.

This commit is contained in:
John-David Dalton
2015-12-29 22:39:02 -06:00
parent 22b0b942ae
commit 5bc50c2ef0

View File

@@ -14362,12 +14362,10 @@
else if (freeExports && freeModule) {
// Export for Node.js.
if (moduleExports) {
(freeModule.exports = _)._ = _;
}
else {
// Export for Rhino with CommonJS support.
freeExports._ = _;
(freeModule.exports = _)._ = _
}
// Export for CommonJS support.
freeExports._ = _;
}
else {
// Export for a browser or Rhino.