1
0
Fork 0
forked from 0x2620/oxjs

append version, not random

This commit is contained in:
rlx 2012-04-18 09:01:42 +00:00
commit db0a2394d9
2 changed files with 7 additions and 3 deletions

View file

@ -40,7 +40,11 @@ window.Ox = {
function loadJSON(callback) {
var req = new XMLHttpRequest();
req.open('GET', path + 'Ox/json/Ox.json?' + Ox.random(1000000), true);
req.open(
'GET',
path + 'Ox/json/Ox.json?' + Math.floor(Math.random() * 1000000),
true
);
req.onreadystatechange = function() {
if (req.readyState == 4) {
if (req.status == 200) {