use base 10 in parseInt, use Math.floor for numbers

This commit is contained in:
rolux 2012-06-13 10:28:21 +02:00
commit 8bc8c57373
19 changed files with 44 additions and 45 deletions

View file

@ -95,7 +95,7 @@ window.Ox = {
} else {
element.onload = callback;
}
element.src = path + script + '?' + parseInt(Math.random() * 1000000);
element.src = path + script + '?' + Math.floor(Math.random() * 1000000);
element.type = 'text/javascript';
head.appendChild(element);
}