Merge pull request #18 from johnyanarella/master

Fixed: Unsafe use of for..in loop results in incorrectly parsed values in some JavaScript VMs.
This commit is contained in:
Faisal Salman 2013-08-16 18:31:15 -07:00
commit 230ef846fa
2 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@
for (j = k = 0; j < regex.length; j++) {
matches = regex[j].exec(this.getUA());
if (!!matches) {
for (p in props) {
for (p = 0; p < props.length; p++) {
match = matches[++k];
q = props[p];
// check if given property is actually array

File diff suppressed because one or more lines are too long