Added compatibility for jQuery UI 1.10+. Closes #2021.
Merge branch 'master' into jquery-ui
Added compatibility for jQuery UI 1.10+.