All Downloads are FREE. Search and download functionalities are using the official Maven repository.

template.js.base.safe-active-element.js Maven / Gradle / Ivy

There is a newer version: 5.0.5
Show newest version
( function( factory ) {
	if ( typeof define === "function" && define.amd ) {

		// AMD. Register as an anonymous module.
		define( [ "jquery", "./version" ], factory );
	} else {

		// Browser globals
		factory( jQuery );
	}
} ( function( $ ) {
return $.ui.safeActiveElement = function( document ) {
	var activeElement;

	// Support: IE 9 only
	// IE9 throws an "Unspecified error" accessing document.activeElement from an