REFACTOR: removes superfluous argument passed to findWidget (#9669)

REFACTOR: removes superfluous argument passed to findWidget (#9669)

findWidget accepts only one argument

diff --git a/app/assets/javascripts/discourse/app/widgets/glue.js b/app/assets/javascripts/discourse/app/widgets/glue.js
index 2fe75de..78aa331 100644
--- a/app/assets/javascripts/discourse/app/widgets/glue.js
+++ b/app/assets/javascripts/discourse/app/widgets/glue.js
@@ -58,11 +58,11 @@ export default class WidgetGlue {
       widget.vnode.children.forEach(child => {
         if (child.constructor.name === "CustomWidget") {
           widgets.push(child);
-          findWidgets(child, widgets);
+          findWidgets(child);
         }
       });
     };
-    findWidgets(this._tree, widgets);
+    findWidgets(this._tree);
     widgets.reverse().forEach(widget => widget.destroy());
 
     cancel(this._timeout);

GitHub sha: 48375db8

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