Open ggagnon76 opened 2 years ago
Module Library: DF Module Buttons v 1.3.2
Describe the issue Using Hooks.call('reloadModuleButtons') produces the following error: TypeError: this._invokeHandler is not a function.
Hooks.call('reloadModuleButtons')
To Reproduce Steps to reproduce the behavior: See above
Expected behavior this is an object and not the expected ControlManager class.
this
Screenshots (Optional)
Fixed it locally. Just have to bind(this) to your reloadModuleButtons() function.
bind(this)
reloadModuleButtons()
this.hooksRegister.reloadModuleButtons = Hooks.on("reloadModuleButtons", this.reloadModuleButtons.bind(this))
Module Library: DF Module Buttons v 1.3.2
Describe the issue Using
Hooks.call('reloadModuleButtons')
produces the following error: TypeError: this._invokeHandler is not a function.To Reproduce Steps to reproduce the behavior: See above
Expected behavior
this
is an object and not the expected ControlManager class.Screenshots (Optional)