Testing if the dropdown is opened before call positionDropdown, on  events by resize, scroll and orientation
Avoid call 'positionDropdown' function if the container it's closed
Recalculation dropdown height if dropdownAutoWidth is true
Only disable keyboard focusing for touch devices [Fixes #1541]

This fixes the issue [1] by first checking to see if the current
device is a touch device.  The other issue [2] that occured because
of the original fix [3] is now fixed, because the hidden inputs
are always focused by default on non-touch devices.

The code used for detecting touch devices was pulled from
StackOverflow [4].  Information on the reasoning behind this fix
can be found on GitHub [5].

[1]: https://github.com/ivaynberg/select2/issues/1541
[2]: https://github.com/ivaynberg/select2/issues/2223
[3]: https://github.com/ivaynberg/select2/commit/d87e93dd45ade99e7894ac4854bf65e8f59667d4
[4]: http://stackoverflow.com/a/15439809/359284
[5]: https://github.com/ivaynberg/select2/issues/1541#issuecomment-39805859
Yii 2.0 widget implementation

Updated implementation for Yii 2.0
Update README.md
Yii 2.0 widget implementation

Updated implementation for Yii framework 2.0
Merge pull request #2302 from ivaynberg/issue_1541

Only disable keyboard focusing for touch devices
Merge pull request #2320 from kartik-v/patch-1

Yii 2.0 widget implementation
Merge pull request #2313 from FallSe7en/master

Cleanup jQuery DOM elements on destroy
Merge pull request #2307 from IFours/master

Recalculation dropdown height if dropdownAutoWidth is true
Merge pull request #2287 from eduardojmatos/master

Testing if the dropdown is opened before call positionDropdown
Replace dots with underscores in event handler names. Dots are processed in special way in jQuery on/off.
Set id in unescaped version.
Merge pull request #2324 from tunguski/master

Fix for dots in id