mgcrea/angular-strap — pull request #18 by djsmith42 (2013-01-09 01:01:00+00:00)
Title: Real fix for the duplicate items in ng-repeat within bs-popover

If your popover lacks a hasContent() function, Bootstrap will end up calling
the content() function twice, and in the case of bs-popover, this would result
in a redundant $compile.

This doesn't necessarily produce any ill effects, but if your bs-popover
partial contained an ng-repeat, the ng-repeat would be replicated once
for every element in the collection.

For example, this:

Controller:
-----------
$scope.things = [{name: "A"}, {name: "B"}, {name: "C"}];

Partial:
--------

{{thing.name}}

Output:
-------
Would yield a popover that contained this:

- A
- A
- A
- B
- B
- B
- C
- C
- C

But it should have contained this:

- A
- B
- C