GoScrobble/web/node_modules/reactstrap/es/polyfill.js

28 lines
672 B
JavaScript
Raw Normal View History

2022-04-25 02:47:15 +00:00
(function () {
if (typeof window !== 'object' || typeof window.CustomEvent === 'function') return;
var CustomEvent = function CustomEvent(event, params) {
params = params || {
bubbles: false,
cancelable: false,
detail: null
};
var evt = document.createEvent('CustomEvent');
evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail);
return evt;
};
window.CustomEvent = CustomEvent;
})();
(function () {
if (typeof Object.values === 'function') return;
var values = function values(O) {
return Object.keys(O).map(function (key) {
return O[key];
});
};
Object.values = values;
})();