aboutsummaryrefslogtreecommitdiff
path: root/js/src/util/scrollbar.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/util/scrollbar.js')
-rw-r--r--js/src/util/scrollbar.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/js/src/util/scrollbar.js b/js/src/util/scrollbar.js
index 2d5d0ffa6..f9a2d992d 100644
--- a/js/src/util/scrollbar.js
+++ b/js/src/util/scrollbar.js
@@ -85,7 +85,9 @@ class ScrollBarHelper {
if (isElement(selector)) {
callBack(selector)
} else {
- SelectorEngine.find(selector, this._element).forEach(callBack)
+ for (const sel of SelectorEngine.find(selector, this._element)) {
+ callBack(sel)
+ }
}
}