2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-14 18:42:30 +03:00

Refactor util plugin and some tests

This commit is contained in:
Johann-S
2018-09-14 14:27:30 +02:00
committed by XhmikosR
parent 19b836c907
commit a2f1d79045
12 changed files with 458 additions and 448 deletions
+1 -2
View File
@@ -313,7 +313,7 @@ class Dropdown {
}
_detectNavbar() {
return Util.makeArray(SelectorEngine.closest(this._element, '.navbar')).length > 0
return Boolean(SelectorEngine.closest(this._element, '.navbar'))
}
_getOffset() {
@@ -367,7 +367,6 @@ class Dropdown {
if (!data) {
data = new Dropdown(element, _config)
Data.setData(element, DATA_KEY, data)
}
if (typeof config === 'string') {