mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-27 14:07:51 +01:00
* Edit max line length * oh god * ts also * rebuild tgui * Format again after conflicts resolving * Me rebuild tgui * this is minified * this is removed * rebuild tgui
52 lines
1.2 KiB
JavaScript
52 lines
1.2 KiB
JavaScript
/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/
|
|
|
|
/* eslint-disable */
|
|
(function () {
|
|
'use strict';
|
|
|
|
// Inferno needs Int32Array, and it is not covered by core-js.
|
|
if (!window.Int32Array) {
|
|
window.Int32Array = Array;
|
|
}
|
|
|
|
// ie11 polyfills
|
|
!(function () {
|
|
// append
|
|
function t() {
|
|
var e = Array.prototype.slice.call(arguments),
|
|
n = document.createDocumentFragment();
|
|
e.forEach(function (e) {
|
|
var t = e instanceof Node;
|
|
n.appendChild(t ? e : document.createTextNode(String(e)));
|
|
}),
|
|
this.appendChild(n);
|
|
}
|
|
// remove
|
|
function n() {
|
|
this.parentNode && this.parentNode.removeChild(this);
|
|
}
|
|
|
|
// add to prototype
|
|
[Element.prototype, Document.prototype, DocumentFragment.prototype].forEach(function (e) {
|
|
e.hasOwnProperty('append') ||
|
|
Object.defineProperty(e, 'append', {
|
|
configurable: !0,
|
|
enumerable: !0,
|
|
writable: !0,
|
|
value: t,
|
|
});
|
|
e.hasOwnProperty('remove') ||
|
|
Object.defineProperty(e, 'remove', {
|
|
configurable: !0,
|
|
enumerable: !0,
|
|
writable: !0,
|
|
value: n,
|
|
});
|
|
});
|
|
})();
|
|
})();
|