From 9cb5cc7ceac7b74f147dd76671429b2683e3612d Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 19 Oct 2010 16:41:46 +0800 Subject: [PATCH] Sample/Window.js --- Sample/Window.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Sample/Window.js b/Sample/Window.js index 2de9b142f..7e0d14085 100644 --- a/Sample/Window.js +++ b/Sample/Window.js @@ -2962,6 +2962,7 @@ Window=new XObject({ return null; //new WebKit.WebView(); } }, + redraws : 0, id : "view", pack : "add", init : function() { @@ -3062,7 +3063,7 @@ Window=new XObject({ return; } var data = js[0]; - + this.redraws++; var project = this.get('/Window.LeftTree').getActiveFile().project; //print (project.fn); @@ -3073,7 +3074,7 @@ Window=new XObject({ this.runhtml = this.runhtml || ''; - if (project.runhtml != this.runhtml) { + if ((project.runhtml != this.runhtml) || (this.redraws > 10)) { // then we need to reload the browser using // load_html_string.. @@ -3095,7 +3096,7 @@ Window=new XObject({ //fixme - should be a config option! 'http://localhost/app.Builder/' ); - + this.redraws = 0; // should trigger load_finished! - which in truns shoudl set refresh Required; return; -- 2.39.2