allow passing a function for maximumSelectionSize
Merge pull request #702 from skivvies/master

allow passing a function for maximumSelectionSize