Instantiate with jQuery elements from .each when clearing info bar

fae13a75319f introduced clearing per kind but .each method return DOM element
instead of jQuery instance.
This commit is contained in:
Cédric Krier committed 2023-03-09 00:14:45 +01:00
1 parent f1a2f77405
commit c2f8c05724
1 file changed
+2 -1
+2 -1
View File
@@ -101,7 +101,8 @@
});
},
clear: function() {
var kinds = this.el.children().each((i, el) => el.data('kind'));
var kinds = this.el.children().each(
(i, el) => jQuery(el).data('kind'));
new Set(kinds).forEach(kind => {
this.refresh(kind);
});