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:
01d081e
)
Sample/Window.js
author
Alan Knowles
<alan@akbkhome.com>
Thu, 5 Aug 2010 01:45:10 +0000
(09:45 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Thu, 5 Aug 2010 01:45:10 +0000
(09:45 +0800)
Sample/Window.js
patch
|
blob
|
history
diff --git
a/Sample/Window.js
b/Sample/Window.js
index
c8a6a14
..
4474e92
100644
(file)
--- a/
Sample/Window.js
+++ b/
Sample/Window.js
@@
-2965,16
+2965,20
@@
Window=new XObject({
// this is run every 2 seconds from the init..
if (this.lastRedraw) {
- var ld = this.lastRedraw - (new Date());
- print("last redraw" + ld);
- }
+ var ld =(new Date()) - this.lastRedraw;
+ }
if (!this.refreshRequired) {
// print("no refresh required");
return;
}
-
+ if (this.lastRedraw) {
+ // do not redraw if last redraw was less that 20 seconds ago.
+ if (((new Date()) - this.lastRedraw) < 20000) {
+ return;
+ }
+ }