mirror of
https://github.com/discourse/discourse.git
synced 2025-02-08 20:34:52 +00:00
I was previously relying on `this.isDestroying` returning `true` during `willDestroyElement`. This was an incorrect assumption. This commit refactors the logic into an explicit `cleanup` function, and also adds some cleanup for empty keys in the `subscribedProxy` array