]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fix dispose causing popover title to change
authorjarstelfox <jarstelfox@mac.com>
Tue, 10 Jul 2018 19:09:51 +0000 (12:09 -0700)
committerJohann-S <johann.servoire@gmail.com>
Thu, 2 Aug 2018 11:51:08 +0000 (13:51 +0200)
see: https://github.com/twbs/bootstrap/issues/26847
in v4, destroy was replaced by dispose

js/src/popover.js

index eade7cf58d9dd650be999bf06bc165180d693dff..9f1e38e6668e8edb5f34412156b5b666389b817d 100644 (file)
@@ -150,7 +150,7 @@ const Popover = (($) => {
         let data = $(this).data(DATA_KEY)
         const _config = typeof config === 'object' ? config : null
 
-        if (!data && /destroy|hide/.test(config)) {
+        if (!data && /dispose|hide/.test(config)) {
           return
         }