projects
/
app.Builder.js
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c9a4da3
)
Sample/Window.js
author
Alan Knowles
<alan@akbkhome.com>
Tue, 19 Oct 2010 08:41:46 +0000
(16:41 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Tue, 19 Oct 2010 08:41:46 +0000
(16:41 +0800)
Sample/Window.js
patch
|
blob
|
history
diff --git
a/Sample/Window.js
b/Sample/Window.js
index
2de9b14
..
7e0d140
100644
(file)
--- a/
Sample/Window.js
+++ b/
Sample/Window.js
@@
-2962,6
+2962,7
@@
Window=new XObject({
return null; //new WebKit.WebView();
}
},
return null; //new WebKit.WebView();
}
},
+ redraws : 0,
id : "view",
pack : "add",
init : function() {
id : "view",
pack : "add",
init : function() {
@@
-3062,7
+3063,7
@@
Window=new XObject({
return;
}
var data = js[0];
return;
}
var data = js[0];
-
+ this.redraws++;
var project = this.get('/Window.LeftTree').getActiveFile().project;
//print (project.fn);
var project = this.get('/Window.LeftTree').getActiveFile().project;
//print (project.fn);
@@
-3073,7
+3074,7
@@
Window=new XObject({
this.runhtml = this.runhtml || '';
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..
// 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/'
);
//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;
// should trigger load_finished! - which in truns shoudl set refresh Required;
return;