FIX: In test mode, initializers were modifying classes over and over (PR #14213)

This fixes the issue by creating a key for each modification and checking to see if it’s been applied to the class before.

In the future we might want to make the key more unique by passing the plugin name or another key, but this seems to work nicely for now.


class is a bit cryptic name for this property, but I can’t say I have a better suggestion :wink:

That’s actually the “target” from before: klass.class.reopenClass - an ember internal I believe. The only thing I made up here is the key