| | @@ -1,6 +1,18 @@ |
| 1 | 1 | "use strict"; |
| 2 | +(function () { |
| 3 | + /* CustomEvent polyfill, courtesy of Mozilla: |
| 4 | + https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/CustomEvent |
| 5 | + */ |
| 6 | + if(typeof window.CustomEvent === "function") return false; |
| 7 | + window.CustomEvent = function(event, params) { |
| 8 | + if(!params) params = {bubbles: false, cancelable: false, detail: null}; |
| 9 | + const evt = document.createEvent('CustomEvent'); |
| 10 | + evt.initCustomEvent( event, params.bubbles, params.cancelable, params.detail ); |
| 11 | + return evt; |
| 12 | + }; |
| 13 | +})(); |
| 2 | 14 | (function(global){ |
| 3 | 15 | /* Bootstrapping bits for the global.fossil object. Must be |
| 4 | 16 | loaded after style.c:style_emit_script_tag() has initialized |
| 5 | 17 | that object. |
| 6 | 18 | */ |
| 7 | 19 | |