From 456c463a9155b929a63f502c9cdc038c1a40e570 Mon Sep 17 00:00:00 2001 From: Alexander Schmitz Date: Wed, 13 May 2015 22:03:32 -0400 Subject: [PATCH] Core: Remove core event/alias and deprecated module dependencies --- ui/core.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/core.js b/ui/core.js index 0487df0a0..9ac196d38 100644 --- a/ui/core.js +++ b/ui/core.js @@ -86,7 +86,7 @@ $.extend( $.ui, { // Support: IE9 - 10 only // If the is blurred, IE will switch windows, see #9420 if ( element && element.nodeName.toLowerCase() !== "body" ) { - $( element ).blur(); + $( element ).trigger( "blur" ); } }, @@ -303,14 +303,14 @@ $.fn.extend( { "mousedown"; return function() { - return this.bind( eventType + ".ui-disableSelection", function( event ) { + return this.on( eventType + ".ui-disableSelection", function( event ) { event.preventDefault(); } ); }; } )(), enableSelection: function() { - return this.unbind( ".ui-disableSelection" ); + return this.off( ".ui-disableSelection" ); } } );