javascript - Bootstrap delegated pop over content callback triggered twice -


i'm using twitter bootstrap 2.3.2 , i'm registering popover open whenever td selector hovered over. have noticed within console content callback being trigger twice. there way prevent happening?

$('#table-data').popover({     selector: '.td-popover',     trigger : 'hover',     content : function () {         console.log(this, arguments)         return 'hello';     } });  <table id="table-data">     <tbody>         <tr>             <td></td>             <td class="td-popover"></td>             <td></td>             <td class="td-popover"></td>         </tr>     </tbody> </table> 

your code correct, issue comes bootstrap itself, intentional behavior , not bug. see github issue more details https://github.com/twbs/bootstrap/issues/12563

fyi didn't change behavior in bootstrap 3.2 (which current stable release), think plan in next 1 (3.2.1)


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -