Added hasOwnProperty check

This ensures that the result output is clean of extended type methods
This commit is contained in:
Shane Thacker 2015-11-01 12:34:54 -06:00
parent 99c15dee95
commit 23160c9fb3

View File

@ -89,6 +89,7 @@
if (typeof result === UNDEF_TYPE) {
result = {};
for (p in props) {
if (props.hasOwnProperty(p)){
q = props[p];
if (typeof q === OBJ_TYPE) {
result[q[0]] = undefined;
@ -97,6 +98,7 @@
}
}
}
}
// try matching uastring with regexes
j = k = 0;