1//= require jquery-ui/version
2
3( function( factory ) {
4 if ( typeof define === "function" && define.amd ) {
5
6 // AMD. Register as an anonymous module.
7 define( [ "jquery", "./version" ], factory );
8 } else {
9
10 // Browser globals
11 factory( jQuery );
12 }
13} ( function( $ ) {
14return $.ui.safeActiveElement = function( document ) {
15 var activeElement;
16
17 // Support: IE 9 only
18 // IE9 throws an "Unspecified error" accessing document.activeElement from an <iframe>
19 try {
…lines 20–35 unchanged (16 lines)
36 activeElement = document.body;
37 }
38
39 return activeElement;
40};
41
42} ) );
43