mirror of
https://github.com/discourse/discourse.git
synced 2025-03-10 08:08:06 +08: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