ivaynberg/select2 — pull request #403 by byroot (2012-09-12 19:33:41+00:00)
Title: Fix perfs issues

Hi, There is 3 performance related changes.

The most important is that `jQuery.data` is a very costly call, especially in Firefox. And listening for `mousemove` events on body, generate a lot of calls. So I've replaced the `data` access by a simpler and lighter closure variable. http://jsperf.com/data-vs-variable

Also there was 2 useless event delegation handler. In that case regular are suffisant.

Regards.