Add ability to prevent or delay updating the ngModel on choose/unchoose
onChosen
and onUnchosen
now get access to an $event
object in their locals which let them
call preventDefault()
to prevent updating of the model, and later performDefault()
to perform it.
Also, added unit tests for the choose
and unchoose
functions, including these new features.