Skip to content

Commit

Permalink
replace if/else
Browse files Browse the repository at this point in the history
  • Loading branch information
GeoSot committed Nov 23, 2021
1 parent 2b19dbb commit dd27d41
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions js/src/util/scrollbar.js
Expand Up @@ -99,10 +99,11 @@ class ScrollBarHelper {
_applyManipulationCallback(selector, callBack) {
if (isElement(selector)) {
callBack(selector)
} else {
for (const sel of SelectorEngine.find(selector, this._element)) {
callBack(sel)
}
return
}

for (const sel of SelectorEngine.find(selector, this._element)) {
callBack(sel)
}
}
}
Expand Down

0 comments on commit dd27d41

Please sign in to comment.