ivaynberg/select2 — pull request #2239 by antstorm (2014-04-03 14:35:32+00:00)
Title: Fix for "leaking clicks"

Ok, this is another solution for clicks that are triggered on underlying elements on mobile devices.

This time `mousedown` and `mouseup` events are left intact. Instead touch-events are marked, but we are still waiting for a 'click' event to arrive. And once we got the click event we execute `selectHighlighted `, but only for marked events.

Fix for issue #2226.