1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-03 02:13:01 +02:00

fix(selector-engine): increase coverage for selector engine

This commit is contained in:
Johann-S
2018-06-16 22:20:27 +02:00
committed by XhmikosR
parent 4510e7e61d
commit 096413a994
5 changed files with 86 additions and 3 deletions

View File

@@ -3,7 +3,7 @@ import Util from '../util'
/**
* --------------------------------------------------------------------------
* Bootstrap (v4.0.0-beta): dom/selectorEngine.js
* Bootstrap (v4.1.1): dom/selectorEngine.js
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* --------------------------------------------------------------------------
*/
@@ -69,6 +69,10 @@ const SelectorEngine = (() => {
},
closest(element, selector) {
if (typeof selector !== 'string') {
return null
}
return closest(element, selector)
},