Core: Moved selectstart support test to deprecated section.

This commit is contained in:
Scott González 2012-12-12 11:22:08 -05:00
parent f5aaf874e9
commit ff78d0bbce

View File

@ -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" ) +