diff options
| author | fat <[email protected]> | 2012-12-19 22:26:36 -0800 |
|---|---|---|
| committer | fat <[email protected]> | 2012-12-19 22:26:36 -0800 |
| commit | 96e5fa6143072db64f34482873c6f7d6b3ec4ffd (patch) | |
| tree | 09c45192eebbf31073589a4777791a1159cfc97d /js | |
| parent | 7c456c85545b433759913051779bf4af9b000d48 (diff) | |
| download | bootstrap-96e5fa6143072db64f34482873c6f7d6b3ec4ffd.tar.xz bootstrap-96e5fa6143072db64f34482873c6f7d6b3ec4ffd.zip | |
whitespace in tooltip + don't pass empty selector to $() in dropdown.js
Diffstat (limited to 'js')
| -rw-r--r-- | js/bootstrap-dropdown.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/js/bootstrap-dropdown.js b/js/bootstrap-dropdown.js index f97a81f35..914eabde7 100644 --- a/js/bootstrap-dropdown.js +++ b/js/bootstrap-dropdown.js @@ -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 } |
