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

findWidget accepts only one argument
This commit is contained in:
Joffrey JAFFEUX 2020-05-07 16:27:15 +02:00 committed by GitHub
parent 5a201082c7
commit 48375db848
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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);