diff options
Diffstat (limited to 'featureClass/class.js')
-rw-r--r-- | featureClass/class.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/featureClass/class.js b/featureClass/class.js index dc0ca27..22614b1 100644 --- a/featureClass/class.js +++ b/featureClass/class.js @@ -211,14 +211,19 @@ class Event { if (this.enabled) return this.enabled = true - this.actuallyRegister() + + delay(0, () => { + this.actuallyRegister() + }) } unregister() { if (!this.enabled) return this.enabled = false - this.actuallyUnregister() + delay(0, () => { + this.actuallyUnregister() + }) } actuallyRegister() { } |