diff options
Diffstat (limited to 'featureClass')
-rw-r--r-- | featureClass/featureManager.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/featureClass/featureManager.js b/featureClass/featureManager.js index abfdd0d..e27208f 100644 --- a/featureClass/featureManager.js +++ b/featureClass/featureManager.js @@ -409,6 +409,8 @@ class FeatureManager { registerCustom(type, func, context) { let id = this.lastChatEventId++ + if (!func) throw new Error("Function must not be null") + this.customEvents[id] = { func: func, context: context, |