Skip to content

Commit

Permalink
Core: Moved selectstart support test to deprecated section.
Browse files Browse the repository at this point in the history
  • Loading branch information
scottgonzalez committed Dec 12, 2012
1 parent f5aaf87 commit ff78d0b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ui/jquery.ui.core.js
Expand Up @@ -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 ) {
Expand Down Expand Up @@ -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" ) +
Expand Down

0 comments on commit ff78d0b

Please sign in to comment.