HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/firetech.komma.pro/node_modules/jquery-ui/tests/lib/helper.js
define( [
	"jquery"
], function( $ ) {

var exports = {};

exports.forceScrollableWindow = function( appendTo ) {

	// The main testable area is 10000x10000 so to enforce scrolling,
	// this DIV must be greater than 10000 to work
	return $( "<div>" )
		.css( {
			height: "11000px",
			width: "11000px"
		} )
		.appendTo( appendTo || "#qunit-fixture" );
};

exports.onFocus = function( element, onFocus ) {
	var fn = function( event ) {
		if ( !event.originalEvent ) {
			return;
		}
		element.off( "focus", fn );
		onFocus();
	};

	element.on( "focus", fn )[ 0 ].focus();
};

return exports;

} );