twitter/bootstrap — pull request #4151 by nticaric (2012-07-23 14:22:45+00:00)
Title: the element should be passed as an argument to the callback function

When the content is fetched via a callback function ,the current element should be passed as an
argument. ie. if the following behavior is wanted:

//the content should be the href attribute of the currnet element
$(function(){
var options = {};
options.title = "Some title";
options.content = function(el) {
return $(el).attr("href");
}
$('a').popover(options)
})