Use hasOwnProperty to make sure we only test real jax (resolves issue #47)
This commit is contained in:
parent
5afdd65b07
commit
63d6c58791
File diff suppressed because one or more lines are too long
|
@ -526,10 +526,10 @@
|
||||||
if (MENU.About.div) {document.body.removeChild(MENU.About.div); delete MENU.About.div}
|
if (MENU.About.div) {document.body.removeChild(MENU.About.div); delete MENU.About.div}
|
||||||
};
|
};
|
||||||
MENU.About.GetJax = function (jax,JAX,type) {
|
MENU.About.GetJax = function (jax,JAX,type) {
|
||||||
for (var id in JAX) {
|
for (var id in JAX) {if (JAX.hasOwnProperty(id)) {
|
||||||
if (JAX[id].isa && JAX[id].isa(JAX))
|
if (JAX[id].isa && JAX[id].isa(JAX))
|
||||||
{jax.push(JAX[id].id+" "+type+" Jax v"+JAX[id].version,["br"])}
|
{jax.push(JAX[id].id+" "+type+" Jax v"+JAX[id].version,["br"])}
|
||||||
}
|
}}
|
||||||
return jax;
|
return jax;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user