harvesthq/chosen — pull request #1146 by szymon-railwaymen (2013-04-18 12:38:01+00:00)
Title: Bugfix: change is triggered before element is removed

I've found bug on destroying selected element - after clicking delete 'x' icon, trigger('change') is called, and then that element is removed.

My script was getting selected values from html elements, so when I clicked 'x', change was called when that element, that I wanted to destroy, was in HTML.

In this commit I moved triggering after the process of removing element.

I'm not able to generate js and js.min files - if somebody could do so, I would be grateful.