1
0
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:
fat
2012-12-19 22:26:36 -08:00
parent 7c456c8554
commit 96e5fa6143
5 changed files with 10 additions and 9 deletions

View File

@@ -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
}