mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-10 23:54:08 +02:00
whitespace in tooltip + don't pass empty selector to $() in dropdown.js
This commit is contained in:
5
js/bootstrap-dropdown.js
vendored
5
js/bootstrap-dropdown.js
vendored
@@ -115,8 +115,9 @@
|
||||
selector = selector && /#/.test(selector) && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7
|
||||
}
|
||||
|
||||
$parent = $(selector)
|
||||
$parent.length || ($parent = $this.parent())
|
||||
$parent = selector && $(selector)
|
||||
|
||||
if (!$parent || !$parent.length) $parent = $this.parent()
|
||||
|
||||
return $parent
|
||||
}
|
||||
|
Reference in New Issue
Block a user