1 ( function( factory ) {
2 if ( typeof define === "function" && define.amd ) {
4 // AMD. Register as an anonymous module.
5 define( [ "jquery", "./version" ], factory );
14 // IE8 does not support the form attribute and when it is supplied. It overwrites the form prop
15 // with a string, so we need to find the proper form.
16 return $.fn.form = function() {
17 return typeof this[ 0 ].form === "string" ? this.closest( "form" ) : $( this[ 0 ].form );