Sample/Window.js
authorAlan Knowles <alan@akbkhome.com>
Thu, 5 Aug 2010 01:43:26 +0000 (09:43 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 5 Aug 2010 01:43:26 +0000 (09:43 +0800)
Sample/Window.js

index 2020634..c8a6a14 100644 (file)
@@ -2963,12 +2963,19 @@ Window=new XObject({
                                                                                     runRefresh : function() 
                                                                                     {
                                                                                         // this is run every 2 seconds from the init..
+                                                                                    
+                                                                                        if (this.lastRedraw) {
+                                                                                           var ld = this.lastRedraw - (new Date());
+                                                                                           print("last redraw" + ld);
+                                                                                           }
                                                                                         
                                                                                         if (!this.refreshRequired) {
                                                                                            // print("no refresh required");
                                                                                             return;
                                                                                         }
                                                                                     
+                                                                                    
+                                                                                        
                                                                                         
                                                                                         
                                                                                         
@@ -3034,6 +3041,7 @@ Window=new XObject({
                                                                                         if (!this.ready) {
                                                                                             console.log('not loaded yet');
                                                                                         }
+                                                                                        this.lastRedraw = new Date();
                                                                                      
                                                                                         this.el.execute_script("Builder.render(" + JSON.stringify(data) + ");");