File: helper.js

package info (click to toggle)
jqueryui 1.12.1%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 4,800 kB
  • sloc: php: 584; xml: 104; makefile: 75
file content (16 lines) | stat: -rw-r--r-- 301 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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 );
	}
} );

} );