Removal of obsolete code

This commit is contained in:
pietervdvn 2021-11-21 02:58:32 +01:00
parent 78147cbb85
commit ffb196a3fc
2 changed files with 0 additions and 15 deletions

View file

@ -1,5 +1,4 @@
import {Utils} from "../Utils";
import {UIEventSource} from "../Logic/UIEventSource";
/**
* A thin wrapper around a html element, which allows to generate a HTML-element.
@ -12,7 +11,6 @@ export default abstract class BaseUIElement {
private clss: Set<string> = new Set<string>();
private style: string;
private _onClick: () => void;
private _onHover: UIEventSource<boolean>;
public onClick(f: (() => void)) {
this._onClick = f;
@ -138,18 +136,6 @@ export default abstract class BaseUIElement {
el.classList.add("pointer-events-none", "cursor-pointer");
}
if (this._onHover !== undefined) {
const self = this;
el.addEventListener('mouseover', () => self._onHover.setData(true));
el.addEventListener('mouseout', () => self._onHover.setData(false));
}
if (this._onHover !== undefined) {
const self = this;
el.addEventListener('mouseover', () => self._onHover.setData(true));
el.addEventListener('mouseout', () => self._onHover.setData(false));
}
return el
} catch (e) {
const domExc = e as DOMException;

View file

@ -7,7 +7,6 @@ import Constants from "../Models/Constants";
import * as all_known_layouts from "../assets/generated/known_layers_and_themes.json"
import {LayoutConfigJson} from "../Models/ThemeConfig/Json/LayoutConfigJson";
import LayoutConfig from "../Models/ThemeConfig/LayoutConfig";
import PrivacyPolicy from "../UI/BigComponents/PrivacyPolicy";
// We HAVE to mark this while importing
Utils.runningFromConsole = true;