You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

24 lines
581 B

  1. ( function( factory ) {
  2. "use strict";
  3. if ( typeof define === "function" && define.amd ) {
  4. // AMD. Register as an anonymous module.
  5. define( [ "jquery", "./version" ], factory );
  6. } else {
  7. // Browser globals
  8. factory( jQuery );
  9. }
  10. } )( function( $ ) {
  11. "use strict";
  12. // Support: IE8 Only
  13. // IE8 does not support the form attribute and when it is supplied. It overwrites the form prop
  14. // with a string, so we need to find the proper form.
  15. return $.fn._form = function() {
  16. return typeof this[ 0 ].form === "string" ? this.closest( "form" ) : $( this[ 0 ].form );
  17. };
  18. } );