From 907ba09c45cf3deb1bee301fdc98fb3cca412026 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Mon, 29 Apr 2024 17:32:38 +0200 Subject: [PATCH] wip: do not use private property yet Support is not ready for us. --- umap/static/umap/js/modules/rules.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/umap/static/umap/js/modules/rules.js b/umap/static/umap/js/modules/rules.js index 96439622..7191d4cd 100644 --- a/umap/static/umap/js/modules/rules.js +++ b/umap/static/umap/js/modules/rules.js @@ -3,25 +3,25 @@ import * as Utils from './utils.js' import { translate } from './i18n.js' class Rule { - #condition = null + _condition = null get condition() { - return this.#condition + return this._condition } set condition(value) { - this.#condition = value + this._condition = value this.parse() } - #isDirty = false + _isDirty = false get isDirty() { - return this.#isDirty + return this._isDirty } set isDirty(status) { - this.#isDirty = status + this._isDirty = status if (status) this.map.isDirty = status }