1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

clean appFooter self = this

This commit is contained in:
grafixeyehero 2023-07-13 02:41:18 +03:00
parent c6e297e011
commit ea9e046d7f

View file

@ -11,25 +11,23 @@ function render() {
class AppFooter {
constructor() {
const self = this;
this.element = render();
self.element = render();
self.add = function (elem) {
self.element.appendChild(elem);
this.add = function (elem) {
this.element.appendChild(elem);
};
self.insert = function (elem) {
this.insert = function (elem) {
if (typeof elem === 'string') {
self.element.insertAdjacentHTML('afterbegin', elem);
this.element.insertAdjacentHTML('afterbegin', elem);
} else {
self.element.insertBefore(elem, self.element.firstChild);
this.element.insertBefore(elem, this.element.firstChild);
}
};
}
destroy() {
const self = this;
self.element = null;
destroy() {
this.element = null;
}
}