mirror of
https://github.com/supanadit/short-url.git
synced 2024-11-23 02:36:21 +00:00
22 lines
493 B
JavaScript
22 lines
493 B
JavaScript
|
( 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.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" );
|
||
|
}
|
||
|
};
|
||
|
|
||
|
} ) );
|