if (!window.tStoreDict) {
10114 window.tStoreDict = {}; 10117 Object.keys(dict).forEach(function (key) { 10118 window.tStoreDict[key] = dict[key][lang] ? dict[key][lang] : dict[key].EN; 10122// Array.prototype.some() 10123if (!Array.prototype.some) { 10124 // eslint-disable-next-line no-extend-native 10125 Array.prototype.some = function (fn) { 10127 if (this === null) { 10128 throw new TypeError('Array.prototype.some called on null or undefined'); 10130 if (typeof fn !== 'function') { 10131 throw new TypeError(); 10133 var t = Object(this); 10134 var len = t.length >>> 0; 10135 var thisArg = arguments.length >= 2 ? arguments[1] : void 0; 10136 for (var i = 0; i < len; i++) { 10137 if (i in t && fn.call(thisArg, t[i], i, t)) { 10145// Element.matches() 10149 e.matchesSelector || 10150 e.webkitMatchesSelector || 10151 e.mozMatchesSelector || 10152 e.msMatchesSelector || 10153 e.oMatchesSelector; 10155 ? // eslint-disable-next-line no-multi-assign 10156 (e.matches = e.matchesSelector = 10157 function matches(selector) { 10158 var matches = document.querySelectorAll(selector); 10160 return Array.prototype.some.call(matches, function (e) { 10164 : // eslint-disable-next-line no-multi-assign 10165 (e.matches = e.matchesSelector = matches); 10166})(Element.prototype); 10168// Element.closest() 10169if (!Element.prototype.closest) { 10170 Element.prototype.closest = function (s) { 10172 while (el && el.nodeType === 1) { 10173 if (Element.prototype.matches.call(el, s)) { 10176 el = el.parentElement || el.parentNode; 10182// String.prototype.trim() 10183if (!String.prototype.trim) { 10185 // eslint-disable-next-line no-extend-native 10186 String.prototype.trim = function () { 10187 return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ''); 10193 * Триггерит пользовательское событие на указанном элементе с переданными данными 10195 * @param {HTMLElement} el - Элемент, на котором будет вызвано событие 10196 * @param {string} eventName - Имя события 10197 * @param {Object} [data] - Данные, передаваемые с событием 10200function t_store_triggerEvent(el, eventName, data) {