> Wouldn't it be better to initialize isTouchDevice only once when select2 gets initialized?

I'm not sure if it would be worth it to move it out of the function.

> Plus, I think the naming of the variable is not the best choice.

I have to agree there, it's been renamed to `supportsTouchEvents` and the comment has been adjusted to specifically mention touch events instead of touch devices.