2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-02 16:04:07 +03: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
+3 -2
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
}