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 (20 lines) | stat: -rw-r--r-- 394 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
define( [
	"qunit",
	"jquery",
	"lib/helper"
], function( QUnit, $, helper ) {

return $.extend( helper, {
	drag: function( el, dx, dy ) {

		// This mouseover is to work around a limitation in resizable
		// TODO: fix resizable so handle doesn't require mouseover in order to be used
		$( el ).simulate( "mouseover" ).simulate( "drag", {
			moves: 2,
			dx: dx,
			dy: dy
		} );
	}
} );

} );