Open your browser's JavaScript console, then click the following button.

The popover docs for the content option state, "If a function is given, it will be called with 1 argument, which is the element that the popover is attached to." This test case, however, shows that the content function is called with the this object set to the attached element and no arguments.

Edit in JS Bin