Skip to content

Checking that URL params that do not exist in a form will not break functionality of code - #42

Open
nettiopsu wants to merge 1 commit into
kflorence:masterfrom
nettiopsu:master
Open

Checking that URL params that do not exist in a form will not break functionality of code#42
nettiopsu wants to merge 1 commit into
kflorence:masterfrom
nettiopsu:master

Conversation

@nettiopsu

Copy link
Copy Markdown

If a query string contains a parameter which is not represented in a form, then elementsByName[name] is undefined, which breaks $.each function and any code that goes after deserialization will not be started ($.each function can not accept undefined parameters, as it contains undefined.length statement)

…form, then elementsByName[name] is undefined, which breaks $.each function and any code that goes after deserialization
@evanbarter

Copy link
Copy Markdown

Just ran in to this issue, PR addressed it. Thanks!

@kflorence

Copy link
Copy Markdown
Owner

@nettiopsu thanks for the contribution. can you write a test case for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants