Interactive interface for browsing global, full-resolution satellite imagery
remove global customEvent polyfill, opt for local scope invoke
Ed Platod35c7aa089eb
diff --git a/web/js/polyfill.js b/web/js/polyfill.jsindex 502cd9510..bca6fdd38 100644--- a/web/js/polyfill.js+++ b/web/js/polyfill.js@@ -163,28 +163,6 @@ export function polyfill () {})();}- /*- * CustomEvent()- *- * https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/CustomEvent- */- if (typeof window.CustomEvent !== 'function') {- (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;- window.CustomEvent = CustomEvent;- })();- }-/** Mobile device quirks. This section is mostly overwriting things that jquery.mobile is adding*/