mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
0627eb3645
Fixes #15074 Closes gh-1760
21 lines
552 B
JavaScript
21 lines
552 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( $ ) {
|
|
|
|
// Support: IE8 Only
|
|
// IE8 does not support the form attribute and when it is supplied. It overwrites the form prop
|
|
// with a string, so we need to find the proper form.
|
|
return $.fn._form = function() {
|
|
return typeof this[ 0 ].form === "string" ? this.closest( "form" ) : $( this[ 0 ].form );
|
|
};
|
|
|
|
} ) );
|