$.param() returns "null" and "undefined" literal if attribute is function #3005
|
Makes sense to me. Would you like to submit a PR, @jtrumbull? |
|
@gibson042 Yeah, just wanted to confirm that there wasn't reasoning behind the current setup. |
|
I don't think this is a breaking change, since "the return value of a function is used instead of the function as a String" still holds (http://api.jquery.com/jQuery.param/ ). But please make an issue or PR in https://github.com/jquery/api.jquery.com if you disagree. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Will result in
a=undefined&b=nulljsfiddle
The
value == nullcheck on Line 61 should happen after the ternary statement, since bothvalueand the result ofvalue()can be null. i.e.