harvesthq/chosen — pull request #667 by ryanwilliams (2012-06-07 04:14:23+00:00)
Title: Fix reselecting option doesn't trigger 'change' event.

This fixes a bug where the 'change' event isn't triggered if you reselect the same option after clearing it.

Reproduce the bug:
1. Have an instance with {allow_single_deselect: true} set.
2. Have some JS listening for the 'change' event on the
3. Select an option. (change event triggers)
4. Click the 'x' to clear selection. (change event triggers)
5. Select the same option again. (change event doesn't trigger)