Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for AMD & Symbol polyfill race condition #255

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix bug for calling polyfill detection prior to calling define
  • Loading branch information
ndreckshage committed Jun 25, 2018
commit ac88f76bc6b48985c06622e8c4aa2fbd8e481534
11 changes: 5 additions & 6 deletions seamless-immutable.development.js
Original file line number Diff line number Diff line change
Expand Up @@ -739,19 +739,18 @@ function immutableInit(config) {
return Immutable;
}

var Immutable = immutableInit();
/* istanbul ignore if */
if (typeof define === 'function' && define.amd) {
define(function() {
return Immutable;
return immutableInit();
});
} else if (typeof module === "object") {
module.exports = Immutable;
module.exports = immutableInit();
} else if (typeof exports === "object") {
exports.Immutable = Immutable;
exports.Immutable = immutableInit();
} else if (typeof window === "object") {
window.Immutable = Immutable;
window.Immutable = immutableInit();
} else if (typeof global === "object") {
global.Immutable = Immutable;
global.Immutable = immutableInit();
}
})();
2 changes: 1 addition & 1 deletion seamless-immutable.development.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading