diff options
author | Chris Rebert <code@rebertia.com> | 2014-12-30 07:03:27 +0300 |
---|---|---|
committer | Chris Rebert <code@rebertia.com> | 2014-12-30 07:08:22 +0300 |
commit | adaabab81bcc7da1c832ecdab79db9d87f04e5b2 (patch) | |
tree | b92176c66f2b2bccbb1a8a7a32204fefe67a5e0d /js/tooltip.js | |
parent | 32cb0715949e5ab20716121234d858e51f3ff386 (diff) |
Revert "Allow multiple delegated tooltip selectors on a node"
This reverts commit 1b3237629a316af41945e20837cf3a332798b264.
This reverts PR #14189 because it caused major regressions.
Fixes #15168.
We'll try to revisit #14167's feature request in Bootstrap v4.
[skip validator]
Diffstat (limited to 'js/tooltip.js')
-rw-r--r-- | js/tooltip.js | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/js/tooltip.js b/js/tooltip.js index cda147d9c7..a3bed9856d 100644 --- a/js/tooltip.js +++ b/js/tooltip.js @@ -445,18 +445,12 @@ function Plugin(option) { return this.each(function () { - var $this = $(this) - var data = $this.data('bs.tooltip') - var options = typeof option == 'object' && option - var selector = options && options.selector + var $this = $(this) + var data = $this.data('bs.tooltip') + var options = typeof option == 'object' && option if (!data && option == 'destroy') return - if (selector) { - if (!data) $this.data('bs.tooltip', (data = {})) - if (!data[selector]) data[selector] = new Tooltip(this, options) - } else { - if (!data) $this.data('bs.tooltip', (data = new Tooltip(this, options))) - } + if (!data) $this.data('bs.tooltip', (data = new Tooltip(this, options))) if (typeof option == 'string') data[option]() }) } |