diff --git a/files/sys/system.js b/files/sys/system.js index 183ad84..6ef9125 100644 --- a/files/sys/system.js +++ b/files/sys/system.js @@ -83,7 +83,7 @@ SYSTEM.prototype.handle_call_pages_page = function (html,entry,id,forced,cached) if(call_func && typeof fn === 'function'){ call_func = false; fn(); - system.log_info('call func: '+entry['func']); + this.log_info('call func: '+entry['func']); } //update state this.state[entry['div']] = url; @@ -95,14 +95,14 @@ SYSTEM.prototype.handle_call_pages_entry = function (entry,id,forced,cached) { //load page this.call_url(url,function(data){system.handle_call_pages_page(data,entry,id,forced,cached);},{},'html',true); } else { - this.log_info('load page: '+id+entry['div']+' '+url+' - skipped - already loaded'); + this.log_info('load page: '+id+entry['div']+' '+url+' - cached'); } } //internal function to handle pagestate results SYSTEM.prototype.handle_call_pages = function (data,id,forced,cached) { if(data['status']){ //clear old state - this.state = {} + //this.state = {} this.state_info = {} this.log_info('load pages: endpoint '+this.endpoint+' group:'+this.group+' state:'+id+' - '+(cached ? 'cached ' : (forced ? 'forced' : 'success')));