]> source.dussan.org Git - jquery-ui.git/commitdiff
Sortable: Remove core event/alias and deprecated module dependencies
authorAlexander Schmitz <arschmitz@gmail.com>
Thu, 14 May 2015 02:01:25 +0000 (22:01 -0400)
committerAlexander Schmitz <arschmitz@gmail.com>
Wed, 20 May 2015 18:27:56 +0000 (14:27 -0400)
demos/sortable/portlets.html
tests/unit/sortable/events.js

index 4d7f9cd539aeed421c0682e6749fdb700292239d..42ddb4444f8bc64eaa81b4142560bd4ba74cb97b 100644 (file)
@@ -58,7 +58,7 @@
                                .addClass( "ui-widget-header ui-corner-all" )
                                .prepend( "<span class='ui-icon ui-icon-minusthick portlet-toggle'></span>");
 
-               $( ".portlet-toggle" ).click(function() {
+               $( ".portlet-toggle" ).on( "click", function() {
                        var icon = $( this );
                        icon.toggleClass( "ui-icon-minusthick ui-icon-plusthick" );
                        icon.closest( ".portlet" ).find( ".portlet-content" ).toggle();
index 174da203d24592ddf9d582c8b78961fe1dc82569..267534b1642e696ab9e3d2fe8b83458b3bb5f064 100644 (file)
@@ -198,7 +198,7 @@ test("#4752: link event firing on sortable with connect list", function () {
                }
        });
 
-       $("#qunit-fixture ul").bind("click.ui-sortable-test", function () {
+       $("#qunit-fixture ul").on("click.ui-sortable-test", function () {
                fired.click = true;
        });