Use hasOwnProperty to make sure we only test real jax (resolves issue #47)

This commit is contained in:
Davide P. Cervone 2011-01-07 15:48:56 -05:00
parent 5afdd65b07
commit 63d6c58791
2 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -526,10 +526,10 @@
if (MENU.About.div) {document.body.removeChild(MENU.About.div); delete MENU.About.div}
};
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))
{jax.push(JAX[id].id+" "+type+" Jax v"+JAX[id].version,["br"])}
}
}}
return jax;
};