var justDebugged = dojox.storage.get("justDebugged", dojox.off.STORAGE_NAMESPACE); var oldVersion = dojox.storage.get("oldVersion", dojox.off.STORAGE_NAMESPACE); var newVersion = null; callback = dojo.hitch(this, callback); dojo.xhrGet({ url: this.versionURL + "?browserbust=" + new Date().getTime(), timeout: 5 * 1000, handleAs: "javascript", error: function(err){ //console.warn("dojox.off.files._getVersionInfo, err=",err); dojox.storage.remove("oldVersion", dojox.off.STORAGE_NAMESPACE); dojox.storage.remove("justDebugged", dojox.off.STORAGE_NAMESPACE); callback(oldVersion, newVersion, justDebugged); }, load: function(data){ //console.warn("dojox.off.files._getVersionInfo, load=",data); // some servers incorrectly return 404's // as a real page if(data){ newVersion = data; } callback(oldVersion, newVersion, justDebugged); } });