Skip to content

Commit a83d4a1

Browse files
committed
jquery-form#323,jquery-form#339; fix error when no options passed
1 parent f0a526e commit a83d4a1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

jquery.form.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
22
* jQuery Form Plugin
3-
* version: 3.36.0-2013.06.16
3+
* version: 3.37.0-2013.07.11
44
* @requires jQuery v1.5 or later
55
* Copyright (c) 2013 M. Alsup
66
* Examples and documentation at: http://malsup.com/jquery/form/
@@ -89,6 +89,9 @@ $.fn.ajaxSubmit = function(options) {
8989
if (typeof options == 'function') {
9090
options = { success: options };
9191
}
92+
else if ( options === undefined ) {
93+
options = {};
94+
}
9295

9396
method = options.type || this.attr2('method');
9497
action = options.url || this.attr2('action');

0 commit comments

Comments
 (0)