Skip to content

Commit d157b59

Browse files
committed
Sortable: Remove core event/alias and deprecated module dependencies
1 parent dcd3cd5 commit d157b59

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

demos/sortable/portlets.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
.addClass( "ui-widget-header ui-corner-all" )
5959
.prepend( "<span class='ui-icon ui-icon-minusthick portlet-toggle'></span>");
6060

61-
$( ".portlet-toggle" ).click(function() {
61+
$( ".portlet-toggle" ).on( "click", function() {
6262
var icon = $( this );
6363
icon.toggleClass( "ui-icon-minusthick ui-icon-plusthick" );
6464
icon.closest( ".portlet" ).find( ".portlet-content" ).toggle();

tests/unit/sortable/events.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ test("#4752: link event firing on sortable with connect list", function () {
198198
}
199199
});
200200

201-
$("#qunit-fixture ul").bind("click.ui-sortable-test", function () {
201+
$("#qunit-fixture ul").on("click.ui-sortable-test", function () {
202202
fired.click = true;
203203
});
204204

0 commit comments

Comments
 (0)