Moerill / token-mold

MIT License
24 stars 33 forks source link

Hardcoded TokenDocument reference #162

Closed jbhuddleston closed 1 year ago

jbhuddleston commented 1 year ago

In the _getBarAttributes() function of token-mold.js you refer directly to TokenDocument.getTrackedAttributes()

As I have created a custom TokenDocument class in my systems this breaks some of your functionality for them and causes a Maximum call stack size exceeded error in them.

You should be able to refer to the overriden class through CONFIG.Token.documentClass (as you have done for the Actor) instead and accomodate anyone who has done the same.

Thank you.

jbhuddleston commented 1 year ago

Pardon. Got an error from github so tried again without looking.

jbhuddleston commented 1 year ago

Pardon. Got an error from github so tried again without looking.