mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2025-04-20 20:13:40 +03:00
16 lines
301 B
JavaScript
16 lines
301 B
JavaScript
define( [
|
|
"jquery",
|
|
"lib/helper"
|
|
], function( $, helper ) {
|
|
|
|
return $.extend( helper, {
|
|
sort: function( assert, handle, dx, dy, index, msg ) {
|
|
$( handle ).simulate( "drag", {
|
|
dx: dx,
|
|
dy: dy
|
|
} );
|
|
assert.equal( $( handle ).parent().children().index( handle ), index, msg );
|
|
}
|
|
} );
|
|
|
|
} );
|