Skip to content

Commit ff78d0b

Browse files
committed
Core: Moved selectstart support test to deprecated section.
1 parent f5aaf87 commit ff78d0b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ui/jquery.ui.core.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,6 @@ $.extend( $.expr[ ":" ], {
180180
}
181181
});
182182

183-
// support
184-
$.support.selectstart = "onselectstart" in document.createElement( "div" );
185-
186183
// support: jQuery <1.8
187184
if ( !$( "<a>" ).outerWidth( 1 ).jquery ) {
188185
$.each( [ "Width", "Height" ], function( i, name ) {
@@ -250,6 +247,7 @@ if ( $( "<a>" ).data( "a-b", "a" ).removeData( "a-b" ).data( "a-b" ) ) {
250247
// deprecated
251248
$.ui.ie = !!/msie [\w.]+/.exec( navigator.userAgent.toLowerCase() );
252249

250+
$.support.selectstart = "onselectstart" in document.createElement( "div" );
253251
$.fn.extend({
254252
disableSelection: function() {
255253
return this.bind( ( $.support.selectstart ? "selectstart" : "mousedown" ) +

0 commit comments

Comments
 (0)