2015-07-16 13:14:58 +00:00
|
|
|
( function( factory ) {
|
2021-06-06 22:58:12 +00:00
|
|
|
"use strict";
|
|
|
|
|
2015-07-16 13:14:58 +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 13:14:58 +00:00
|
|
|
|
|
|
|
// 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.
|
2016-10-11 13:59:32 +00:00
|
|
|
return $.fn._form = function() {
|
2015-07-16 13:14:58 +00:00
|
|
|
return typeof this[ 0 ].form === "string" ? this.closest( "form" ) : $( this[ 0 ].form );
|
|
|
|
};
|
|
|
|
|
2021-06-06 22:58:12 +00:00
|
|
|
} );
|