jquery-ui/tests/unit/sortable/helper.js
Alexander Schmitz 62c8217185 Sortable: Style updates
Ref #14246
2015-09-11 08:29:08 -04:00

17 lines
286 B
JavaScript

define( [
"jquery",
"lib/helper"
], function( $, helper ) {
return $.extend( helper, {
sort: function( handle, dx, dy, index, msg ) {
$( handle ).simulate( "drag", {
dx: dx,
dy: dy
} );
equal( $( handle ).parent().children().index( handle ), index, msg );
}
} );
} );