Skip to content

Commit

Permalink
v2.84: Use $.isArray instead of instance test (thanks Krinkle)
Browse files Browse the repository at this point in the history
  • Loading branch information
malsup committed Aug 12, 2011
1 parent f5a1047 commit e77e287
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jquery.form.js
@@ -1,6 +1,6 @@
/*!
* jQuery Form Plugin
* version: 2.83 (11-JUL-2011)
* version: 2.84 (12-AUG-2011)
* @requires jQuery v1.3.2 or later
*
* Examples and documentation at: http://malsup.com/jquery/form/
Expand Down Expand Up @@ -91,7 +91,7 @@ $.fn.ajaxSubmit = function(options) {
if (options.data) {
options.extraData = options.data;
for (n in options.data) {
if(options.data[n] instanceof Array) {
if( $.isArray(options.data[n]) ) {
for (var k in options.data[n]) {
a.push( { name: n, value: options.data[n][k] } );
}
Expand Down

0 comments on commit e77e287

Please sign in to comment.