The onAfterSelect docs say that the “prevent” parameter “indicates whether the previous selection was saved”. This creates confusion with “prevent”, the return value of onBeforeSelect. I think the correct parameter name should be “preserved”.
Also, in what situations would the previous selection be preserved, other than multi-select? Would be good to add this information to that documentation page.