DEV: pass widget back when cleaning up stream (#9422)

DEV: pass widget back when cleaning up stream (#9422)

diff --git a/app/assets/javascripts/discourse/components/mount-widget.js b/app/assets/javascripts/discourse/components/mount-widget.js
index dc1eb2e..3701b32 100644
--- a/app/assets/javascripts/discourse/components/mount-widget.js
+++ b/app/assets/javascripts/discourse/components/mount-widget.js
@@ -58,7 +58,7 @@ export default Component.extend({
   willClearRender() {
     const callbacks = _cleanCallbacks[this.widget];
     if (callbacks) {
-      callbacks.forEach(cb => cb());
+      callbacks.forEach(cb => cb(this._tree));
     }
 
     this._connected.forEach(v => v.destroy());

GitHub sha: 6023ea19

This commit appears in #9422 which was approved by eviltrout. It was merged by jjaffeux.