jupiterjs/jquerymx — Issue #118: formParams() can now only be called on <form> element. 
Author: arjunballa
Created: 2012-03-06 06:34:21+00:00
State: open

The new version of formParams() requires to be called only on

element.

formParams() called on other than

element returns undefined.

if ( this[0].nodeName.toLowerCase() == 'form' && this[0].elements ) {
return jQuery(jQuery.makeArray(this[0].elements)).getParams(convert);
}
return jQuery("input[name], textarea[name], select[name]", this[0]).getParams(convert); // this condition is not covered