Skip to content

Commit 456c463

Browse files
committed
Core: Remove core event/alias and deprecated module dependencies
1 parent 5ee324d commit 456c463

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ui/core.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ $.extend( $.ui, {
8686
// Support: IE9 - 10 only
8787
// If the <body> is blurred, IE will switch windows, see #9420
8888
if ( element && element.nodeName.toLowerCase() !== "body" ) {
89-
$( element ).blur();
89+
$( element ).trigger( "blur" );
9090
}
9191
},
9292

@@ -303,14 +303,14 @@ $.fn.extend( {
303303
"mousedown";
304304

305305
return function() {
306-
return this.bind( eventType + ".ui-disableSelection", function( event ) {
306+
return this.on( eventType + ".ui-disableSelection", function( event ) {
307307
event.preventDefault();
308308
} );
309309
};
310310
} )(),
311311

312312
enableSelection: function() {
313-
return this.unbind( ".ui-disableSelection" );
313+
return this.off( ".ui-disableSelection" );
314314
}
315315
} );
316316

0 commit comments

Comments
 (0)