Skip to content

Instantly share code, notes, and snippets.

View KeesCBakker's full-sized avatar
😎
Out huntin' bugz!

Kees C. Bakker KeesCBakker

😎
Out huntin' bugz!
View GitHub Profile
{
"pomegranate": {
"50": "#f9ebea",
"100": "#f2d7d5",
"200": "#e6b0aa",
"300": "#d98880",
"400": "#cd6155",
"500": "#c0392b",
"600": "#a93226",
"700": "#922b21",
@KeesCBakker
KeesCBakker / custom-event-polyfill.js
Last active December 2, 2021 03:51
Custom Event Polyfill From MDN
// custom event polyfill for IE9 - IE11
(function () {
if (typeof window.CustomEvent !== 'function') {
function CustomEvent(event, params) {
params = params || { bubbles: false, cancelable: false, detail: undefined };
var evt = document.createEvent('CustomEvent');
evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail);
return evt;
}
CustomEvent.prototype = window.Event.prototype;