prevent creation of _defineProperty() function

This commit is contained in:
djmaze 2021-03-16 16:08:01 +01:00
parent eff92c3152
commit 986b8f056b
8 changed files with 24 additions and 57 deletions

View file

@ -19,20 +19,6 @@ export function encodeHtml(text) {
}
class HtmlEditor {
editor;
blurTimer = 0;
__resizable = false;
__inited = false;
onBlur = null;
onReady = null;
onModeChange = null;
element;
resize;
/**
* @param {Object} element
* @param {Function=} onBlur
@ -40,6 +26,12 @@ class HtmlEditor {
* @param {Function=} onModeChange
*/
constructor(element, onBlur = null, onReady = null, onModeChange = null) {
this.editor;
this.blurTimer = 0;
this.__resizable = false;
this.__inited = false;
this.onBlur = onBlur;
this.onReady = onReady;
this.onModeChange = onModeChange;