Skip to content

Commit 157af1e

Browse files
authored
Merge pull request #547 from sunny-mwx/patch-1
Fix enumerize loop to only check its own properties
2 parents b4cfe1b + 10c978e commit 157af1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ua-parser.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
},
7777
enumerize = function (arr) {
7878
var enums = {};
79-
for (var i in arr) {
79+
for (var i=0; i<arr.length; i++) {
8080
enums[arr[i].toUpperCase()] = arr[i];
8181
}
8282
return enums;

0 commit comments

Comments
 (0)