In gauges.js there is:
Code: Select all
getRealtime = function () {
var url = config.realTimeURL;
if ($.active > 0 ) {
// kill any outstanding requests
jqXHR.abort();
}
which results in an abort attempt with jqXHR == null, probably because somewhere else another ajax call is outstanding which has increased $.active without the implicit meaning jqXHR has been set. Apparently this has never interfered with the normal realtime.txt but it does with my construction (simply reading files for HTML changes other than the realtime stuff)
So I changed the code in:
Code: Select all
getRealtime = function () {
var url = config.realTimeURL;
if ($.active > 0 && jqXHR != null /* HAR */) {
// kill any outstanding requests
jqXHR.abort();
}
When running this I get another problem:
Code: Select all
if (!dashboard) {
// Go do get the data!
getRealtime();
// start a timer to update the status time
tickTockInterval = setInterval(
function () {
$.publish('gauges.clockTick', null);
},
1000);
with different stacktraces.TypeError: $.publish is not a function
Before I try to find this all, has anybody, specifically Mark, any remarks on this and an idea of where to go to solve the issue?