diff options
-rw-r--r-- | featureClass/featureManager.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/featureClass/featureManager.js b/featureClass/featureManager.js index f39d762..92212be 100644 --- a/featureClass/featureManager.js +++ b/featureClass/featureManager.js @@ -536,11 +536,13 @@ class FeatureManager { return event } - registerCommand(commandName, func, context) { + registerCommand(commandName, func, context, completions) { let event = this.registerCustom("command", func, context) event.trigger.setName(commandName, true) + + if (completions) event.trigger.setName(commandName, true).setTabCompletions(completions) return event } |