Wouldn't it be better to initialize `isTouchDevice` only once when select2 get initialized?