ivaynberg/select2 — pull request #635 by t0m (2012-12-10 18:32:49+00:00)
Title: Fix for more than one multi-select being open at the same time

On Chrome, FF, and Safari the dropdowns for multi-selects don't blur properly when another multi-select is clicked (IE seems to work fine). I found that this would trip up my selenium tests as they couldn't figure out which dropdown to manipulate.

Before the fix, the mousedown/touchend event would only close the other active dropdowns if the target of the event wasn't a select2 element. With the fix, if the target is a select2 element then we find out which dropdown it spawned and blur the other active dropdowns.

Here's the original behavior: http://jsfiddle.net/FPNTa/
and with the fix: http://jsfiddle.net/FPNTa/1/