League-of-Foundry-Developers / fvtt-module-furnace

34 stars 12 forks source link

Bind the execution of script macros to the macro #57

Closed janssen-io closed 4 years ago

janssen-io commented 4 years ago

In Foundry (core), this is available inside script macros with a reference to the macro that is being executed. To enable this behaviour, we must bind the returned function to the macro (in this context this) before executing it with the context..

kakaroto commented 4 years ago

Awesome, thank you!