diff options
Diffstat (limited to 'ui')
-rw-r--r-- | ui/core.js | 6 |
1 files 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 <body> 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" ); } } ); |