todo/public/vendor/jquery-ui/ui/form.js
Supan Adit Pratama 35d8715ab4 first commit
2020-06-23 11:40:37 +07:00

21 lines
551 B
JavaScript
Executable File
Vendored

( 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 );
};
} ) );