]> source.dussan.org Git - jquery-ui.git/commitdiff
Core: Remove core event/alias and deprecated module dependencies
authorAlexander Schmitz <arschmitz@gmail.com>
Thu, 14 May 2015 02:03:32 +0000 (22:03 -0400)
committerAlexander Schmitz <arschmitz@gmail.com>
Wed, 20 May 2015 18:27:57 +0000 (14:27 -0400)
ui/core.js

index 0487df0a005a3236b2347913018f5447bcf59b7b..9ac196d38f8d077bb552c7f3c7e65213eca6b748 100644 (file)
@@ -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" );
        }
 } );