2015-07-16 00:17:12 +00:00
|
|
|
( function( factory ) {
|
2021-06-06 22:58:12 +00:00
|
|
|
"use strict";
|
|
|
|
|
2015-07-16 00:17:12 +00:00
|
|
|
if ( typeof define === "function" && define.amd ) {
|
|
|
|
|
|
|
|
// AMD. Register as an anonymous module.
|
|
|
|
define( [ "jquery", "./version" ], factory );
|
|
|
|
} else {
|
|
|
|
|
|
|
|
// Browser globals
|
|
|
|
factory( jQuery );
|
|
|
|
}
|
2021-06-06 22:58:12 +00:00
|
|
|
} )( function( $ ) {
|
|
|
|
"use strict";
|
|
|
|
|
2015-07-16 00:17:12 +00:00
|
|
|
return $.ui.safeBlur = function( element ) {
|
|
|
|
|
|
|
|
// Support: IE9 - 10 only
|
|
|
|
// If the <body> is blurred, IE will switch windows, see #9420
|
|
|
|
if ( element && element.nodeName.toLowerCase() !== "body" ) {
|
|
|
|
$( element ).trigger( "blur" );
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2021-06-06 22:58:12 +00:00
|
|
|
} );
|