If I run this (JS in console for ease):
<button id="myBtn" class="btn btn-default">Click</button>
$("#myBtn").popover('destroy').popover(
{
placement: 'left',
title: 'test',
html: true,
content: 'test',
trigger: 'focus'
}
);
The popover works. If I run the JS a second time, the popover doesn't work (can be seen in visual event that it doesn't bind). If I run it a 3rd time, it works. And so on...
Is this a bug in bootstrap, or am I missing something? Is there a workaround?