mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Core: Moved selectstart support test to deprecated section.
This commit is contained in:
parent
f5aaf874e9
commit
ff78d0bbce
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
|
// support: jQuery <1.8
|
||||||
if ( !$( "<a>" ).outerWidth( 1 ).jquery ) {
|
if ( !$( "<a>" ).outerWidth( 1 ).jquery ) {
|
||||||
$.each( [ "Width", "Height" ], function( i, name ) {
|
$.each( [ "Width", "Height" ], function( i, name ) {
|
||||||
@ -250,6 +247,7 @@ if ( $( "<a>" ).data( "a-b", "a" ).removeData( "a-b" ).data( "a-b" ) ) {
|
|||||||
// deprecated
|
// deprecated
|
||||||
$.ui.ie = !!/msie [\w.]+/.exec( navigator.userAgent.toLowerCase() );
|
$.ui.ie = !!/msie [\w.]+/.exec( navigator.userAgent.toLowerCase() );
|
||||||
|
|
||||||
|
$.support.selectstart = "onselectstart" in document.createElement( "div" );
|
||||||
$.fn.extend({
|
$.fn.extend({
|
||||||
disableSelection: function() {
|
disableSelection: function() {
|
||||||
return this.bind( ( $.support.selectstart ? "selectstart" : "mousedown" ) +
|
return this.bind( ( $.support.selectstart ? "selectstart" : "mousedown" ) +
|
||||||
|
Loading…
Reference in New Issue
Block a user