PageSourceSearch

https://booksrus.fr/bitrix/cache/js/s1/aspro_max/kernel_main_polyf…n_polyfill_customevent_v1.js?16523598711253

js booksrus.fr collected 2026-09-30 02:34:46 UTC 1,253 bytes, 50 lines download raw bytes

1; /* /bitrix/js/main/polyfill/customevent/main.polyfill.customevent.js?1614191596913*/
2
3; /* Start:"a:4:{s:4:"full";s:79:"/bitrix/js/main/polyfill/customevent/main.polyfill.customevent.js?1614191596913";s:6:"source";s:65:"/bitrix/js/main/polyfill/customevent/main.polyfill.customevent.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
4/**
5 * window.CustomEvent polyfill
6 */
7;(function() {
8	'use strict';
9
10	try
11	{
12		new window.CustomEvent('bx-test-custom-event', {
13			bubbles: true,
14  			cancelable: true
15		});
16	}
17	catch (exception)
18	{
19		var CustomEventPolyfill = function(event, params)
20		{
21			params = params || {};
22			params.bubbles = !!params.bubbles;
23			params.cancelable = !!params.cancelable;
24
25			var customEvent = document.createEvent('CustomEvent');
26
27			customEvent.initCustomEvent(event, params.bubbles, params.cancelable, params.detail);
28
29			var originalPreventFunction = customEvent.preventDefault;
30
31			customEvent.preventDefault = function()
32			{
33				Object.defineProperty(this, 'defaultPrevented', {
34					get: function() { return true; }
35				});
36
37				originalPreventFunction.call(this);
38			};
39
40			return customEvent;
41		};
42
43		CustomEventPolyfill.prototype = window.Event.prototype;
44
45		window.CustomEvent = CustomEventPolyfill;
46	}
47
48})();
49/* End */
50;

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.