jquery-ui/tests/unit/sortable/helper.js

17 lines
286 B
JavaScript
Raw Normal View History

define( [
"jquery",
"lib/helper"
], function( $, helper ) {
return $.extend( helper, {
sort: function( handle, dx, dy, index, msg ) {
$( handle ).simulate( "drag", {
dx: dx,
dy: dy
2015-08-24 12:57:53 +00:00
} );
equal( $( handle ).parent().children().index( handle ), index, msg );
}
} );
} );