diff options
| author | Chris Rebert <[email protected]> | 2014-12-29 20:03:27 -0800 |
|---|---|---|
| committer | Chris Rebert <[email protected]> | 2014-12-29 20:08:22 -0800 |
| commit | adaabab81bcc7da1c832ecdab79db9d87f04e5b2 (patch) | |
| tree | b92176c66f2b2bccbb1a8a7a32204fefe67a5e0d /js/popover.js | |
| parent | 32cb0715949e5ab20716121234d858e51f3ff386 (diff) | |
| download | bootstrap-adaabab81bcc7da1c832ecdab79db9d87f04e5b2.tar.xz bootstrap-adaabab81bcc7da1c832ecdab79db9d87f04e5b2.zip | |
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/popover.js')
| -rw-r--r-- | js/popover.js | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/js/popover.js b/js/popover.js index db272bdee..3a0bab38b 100644 --- a/js/popover.js +++ b/js/popover.js @@ -86,18 +86,12 @@ function Plugin(option) { return this.each(function () { - var $this = $(this) - var data = $this.data('bs.popover') - var options = typeof option == 'object' && option - var selector = options && options.selector + var $this = $(this) + var data = $this.data('bs.popover') + var options = typeof option == 'object' && option if (!data && option == 'destroy') return - if (selector) { - if (!data) $this.data('bs.popover', (data = {})) - if (!data[selector]) data[selector] = new Popover(this, options) - } else { - if (!data) $this.data('bs.popover', (data = new Popover(this, options))) - } + if (!data) $this.data('bs.popover', (data = new Popover(this, options))) if (typeof option == 'string') data[option]() }) } |
