[jsword-devel] Fixing PassageTally.trimVerses

DM Smith dmsmith at crosswire.org
Wed Sep 5 11:43:56 MST 2012


I might have time to look at this in a few hours.

IIRC, raiseNormalizeProtection is a local counting mechanism that will prevent events from being fired.

So if A is relatively small and fires an event, but B does many A (e.g. iterating a list) then B might want A to not fire each time but once.

-- DM

On Sep 5, 2012, at 12:29 PM, Chris Burrell <chris at burrell.me.uk> wrote:

> Hi
> 
> Any reason this overrides its parent? It's behaviour is (almost) identical to AbstractPassage (apart from the raiseNormaliseProtection - which I'm not entirely sure what it does).
> 
> Please note, I've set up another pull request to fix the fact it was returning count+1 verses.
> 
> Cheers
> Chris



More information about the jsword-devel mailing list