Permalink
Browse files

Core: Moved selectstart support test to deprecated section.

  • Loading branch information...
1 parent f5aaf87 commit ff78d0bbce07e4fc45caff84a740408af4909d2c @scottgonzalez scottgonzalez committed Dec 12, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 ui/jquery.ui.core.js
View
@@ -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" ) +

0 comments on commit ff78d0b

Please sign in to comment.