Skip to content
This repository was archived by the owner on Mar 12, 2025. It is now read-only.

Commit ac88f76

Browse files
committed
Fix bug for calling polyfill detection prior to calling define
1 parent c549c67 commit ac88f76

File tree

4 files changed

+12
-14
lines changed

4 files changed

+12
-14
lines changed

seamless-immutable.development.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -739,19 +739,18 @@ function immutableInit(config) {
739739
return Immutable;
740740
}
741741

742-
var Immutable = immutableInit();
743742
/* istanbul ignore if */
744743
if (typeof define === 'function' && define.amd) {
745744
define(function() {
746-
return Immutable;
745+
return immutableInit();
747746
});
748747
} else if (typeof module === "object") {
749-
module.exports = Immutable;
748+
module.exports = immutableInit();
750749
} else if (typeof exports === "object") {
751-
exports.Immutable = Immutable;
750+
exports.Immutable = immutableInit();
752751
} else if (typeof window === "object") {
753-
window.Immutable = Immutable;
752+
window.Immutable = immutableInit();
754753
} else if (typeof global === "object") {
755-
global.Immutable = Immutable;
754+
global.Immutable = immutableInit();
756755
}
757756
})();

seamless-immutable.development.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)