mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-21 07:03:05 +00:00
* Ports React [READY] * Fix merge conflicts * I hate you javascript * Fixes some issues * Bring back the padding * Update JobsPage.tsx * Squeezing every last drop of space * Update AntagInfoAssaultops.tsx * More react compat --------- Co-authored-by: Jeremiah <42397676+jlsnow301@users.noreply.github.com> Co-authored-by: Giz <13398309+vinylspiders@users.noreply.github.com>
49 lines
1.1 KiB
JavaScript
49 lines
1.1 KiB
JavaScript
/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/
|
|
|
|
/* eslint-disable */
|
|
(function () {
|
|
'use strict';
|
|
|
|
// 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,
|
|
});
|
|
}
|
|
);
|
|
})();
|
|
})();
|