ivaynberg/select2 — pull request #2324 by tunguski (2014-04-28 11:38:13+00:00)
Title: Fix for dots in id

As described here #2210 and #2218, commit for #1841 broke dots handling in ids. This PR replaces dots with underscores when building event handler name. Id in container's dom element is set in unescaped version.

Dots are treated specially in jQuery for event handler name - they represent namespace parts. So best would be no dots, as they misleadingly suggest namespaces for jQuery.

Here is jsFiddle with PR select2.js version - first select's id contains dots, [ ] and minus chars. http://jsfiddle.net/nzt7g/4/