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

Commit

Permalink
Catch unexpected values in array (#63)
Browse files Browse the repository at this point in the history
* Fix for unexpected prototype mutations.
* Update tested jQuery versions, stop testing jQuery HEAD
  • Loading branch information
lesliedoherty authored and iamEAP committed Jul 16, 2018
1 parent 5405ba8 commit 3c835b0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
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

0 comments on commit 3c835b0

Please sign in to comment.