File manager - Edit - /home/c14075/dragmet-ural.ru/www/bitrix/modules/main/install/js/main/polyfill/customevent/main.polyfill.customevent.js
Back
/** * window.CustomEvent polyfill */ ;(function() { 'use strict'; try { new window.CustomEvent('bx-test-custom-event', { bubbles: true, cancelable: true }); } catch (exception) { var CustomEventPolyfill = function(event, params) { params = params || {}; params.bubbles = !!params.bubbles; params.cancelable = !!params.cancelable; var customEvent = document.createEvent('CustomEvent'); customEvent.initCustomEvent(event, params.bubbles, params.cancelable, params.detail); var originalPreventFunction = customEvent.preventDefault; customEvent.preventDefault = function() { Object.defineProperty(this, 'defaultPrevented', { get: function() { return true; } }); originalPreventFunction.call(this); }; return customEvent; }; CustomEventPolyfill.prototype = window.Event.prototype; window.CustomEvent = CustomEventPolyfill; } })();
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.25 |
proxy
|
phpinfo
|
Settings