mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
62c8217185
Ref #14246
17 lines
286 B
JavaScript
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 );
|
|
}
|
|
} );
|
|
|
|
} );
|