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
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion Gruntfile.js
Expand Up @@ -62,7 +62,7 @@ module.exports = function(grunt) {
},
all: {
options: {
urls: ['1.3.2', '1.4.4', '1.5.2', '1.6.4', '1.7.2', '1.8.3', '1.9.1', '1.10.2', '1.11.3', '1.12.0', 'git1', '2.0.3', '2.1.4', '2.2.0', 'git2'].map(function(version) {
urls: ['1.3.2', '1.4.4', '1.5.2', '1.6.4', '1.7.2', '1.8.3', '1.9.1', '1.10.2', '1.11.3', '1.12.4', '2.0.3', '2.1.4', '2.2.4', '3.0.0', '3.1.1', '3.2.1'].map(function(version) {
return 'test/addressfield.html?jquery=' + version;
})
}
Expand Down
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