Skip to content

Commit

Permalink
Fix bug for calling polyfill detection prior to calling define
Browse files Browse the repository at this point in the history
  • Loading branch information
ndreckshage committed Jun 25, 2018
1 parent c549c67 commit ac88f76
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 14 deletions.
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

0 comments on commit ac88f76

Please sign in to comment.