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:
+1
-2
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user