jacobwojoski / dice-stats

A Module for Foundry VTT that tracks and displays dice stats
MIT License
7 stars 6 forks source link

[Enhancement] Fix scope of internal calls #87

Open jacobwojoski opened 11 months ago

jacobwojoski commented 11 months ago

Scope is all jank due to button callbacks not have access to local variables.

Fix callback by adding .bind(this) to the end and they should now have access.

Probably can’t fix socket this way though.