I'm trying to modify the icon example from to display multiple icons, each with its own set of attributes that display when the icon is clicked. The issue I'm having is that if icon1 is clicked, and then icon2 is clicked, before clicking anywhere else, icon2's popover contains the contents of icon1's popover.
I've tried various things, like running the
popover('destroy'), but nothing seems to work.
I've created a jsfiddle to illustrate the problem, and included a hacky fix that I've commented out.