mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-04-20 03:02:41 -04:00
Core: Moved selectstart support test to deprecated section.
This commit is contained in:
4
ui/jquery.ui.core.js
vendored
4
ui/jquery.ui.core.js
vendored
@@ -180,9 +180,6 @@ $.extend( $.expr[ ":" ], {
|
||||
}
|
||||
});
|
||||
|
||||
// support
|
||||
$.support.selectstart = "onselectstart" in document.createElement( "div" );
|
||||
|
||||
// support: jQuery <1.8
|
||||
if ( !$( "<a>" ).outerWidth( 1 ).jquery ) {
|
||||
$.each( [ "Width", "Height" ], function( i, name ) {
|
||||
@@ -250,6 +247,7 @@ if ( $( "<a>" ).data( "a-b", "a" ).removeData( "a-b" ).data( "a-b" ) ) {
|
||||
// deprecated
|
||||
$.ui.ie = !!/msie [\w.]+/.exec( navigator.userAgent.toLowerCase() );
|
||||
|
||||
$.support.selectstart = "onselectstart" in document.createElement( "div" );
|
||||
$.fn.extend({
|
||||
disableSelection: function() {
|
||||
return this.bind( ( $.support.selectstart ? "selectstart" : "mousedown" ) +
|
||||
|
||||
Reference in New Issue
Block a user