From 37080b195653fe682a398b23b1c62c53aa4b8794 Mon Sep 17 00:00:00 2001 From: rylon Date: Fri, 10 Apr 2015 03:46:43 +0200 Subject: [PATCH] fixed small statesystem bugs --- files/sys/system.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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')));