From ff78d0bbce07e4fc45caff84a740408af4909d2c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Wed, 12 Dec 2012 11:22:08 -0500 Subject: [PATCH] Core: Moved selectstart support test to deprecated section. --- ui/jquery.ui.core.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ui/jquery.ui.core.js b/ui/jquery.ui.core.js index bd3e30758..4ad4f8a09 100644 --- a/ui/jquery.ui.core.js +++ b/ui/jquery.ui.core.js @@ -180,9 +180,6 @@ $.extend( $.expr[ ":" ], { } }); -// support -$.support.selectstart = "onselectstart" in document.createElement( "div" ); - // support: jQuery <1.8 if ( !$( "" ).outerWidth( 1 ).jquery ) { $.each( [ "Width", "Height" ], function( i, name ) { @@ -250,6 +247,7 @@ if ( $( "" ).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" ) + -- 2.39.5