define( [
"jquery",
"lib/common",
- "ui/core"
+ "ui/core",
+ "ui/form"
], function( $, common ) {
module( "core - jQuery extensions" );
"./disable-selection",
"./escape-selector",
"./focusable",
+ "./form",
"./version"
], factory );
} else {
} );
},
- // 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.
- form: function() {
- return typeof this[ 0 ].form === "string" ? this.closest( "form" ) : $( this[ 0 ].form );
- },
-
labels: function() {
var ancestor, selector, id, labels, ancestors;
// AMD. Register as an anonymous module.
define( [
"jquery",
- "ui/core",
+ "./form",
"./version"
], factory );
} else {
--- /dev/null
+( 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 );
+};
+
+} ) );