Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

Catch unexpected values in array #63

Merged
merged 2 commits into from Jul 16, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/jquery.addressfield.js
Expand Up @@ -119,7 +119,10 @@

// Iterate through defined address fields for this country.
for (fieldPos in config.fields) {
// Determine the xNAL name of this field.
// Determine the xNAL name of this field and ignore
if (!config.fields.hasOwnProperty(fieldPos)) {
continue;
}
field = $.fn.addressfield.onlyKey(config.fields[fieldPos]);

// Pick out the existing elements for the given field.
Expand Down