Moerill / token-mold

MIT License
27 stars 33 forks source link

Hardcoded ref to TokenDocument #161

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.

Geekswordsman commented 1 year ago

Duplicate of #160