aboutsummaryrefslogtreecommitdiff
path: root/featureClass
diff options
context:
space:
mode:
Diffstat (limited to 'featureClass')
-rw-r--r--featureClass/class.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/featureClass/class.js b/featureClass/class.js
index 04e9552..d595e4b 100644
--- a/featureClass/class.js
+++ b/featureClass/class.js
@@ -173,7 +173,8 @@ class Event {
}
update() {
- if (this.enabled === this.when()) return
+ let shouldBeEnabled = !!this.when()
+ if (this.enabled === shouldBeEnabled) return
if (this.enabled) {
this.unregister()