}
/** Returns a property calculated from the given list, with no special mirroring setup. */
public static LongProperty bindTotalPledgedProperty(ObservableSet<LHProtos.Pledge> pledges) {
// We must ensure that the returned property keeps a strong reference to pledges, in case it's the only one.
return new SimpleLongProperty(0) {
private ObservableSet<LHProtos.Pledge> pledgesRef = pledges;
// This should probably be done differently (as a lazy binding?) but I doubt it matters.
{
pledgesRef.addListener((InvalidationListener) o -> {