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

index 1622d27..d92ed15 100644 (file)
@@ -2910,15 +2910,17 @@ Window=new XObject({
                                                                                         // this is run every 2 seconds from the init..
                                                                                         
                                                                                         if (!this.refreshRequired) {
+                                                                                            print("no refresh required");
                                                                                             return;
                                                                                         }
-                                                                                        this.refreshRequired = false;
+                                                                                    
                                                                                         
                                                                                         
                                                                                         
                                                                                          if (!this.get('/Window.LeftTree').getActiveFile()) {
                                                                                             return;
                                                                                          }
+                                                                                         this.refreshRequired = false;
                                                                                          print("HTML RENDERING");
                                                                                          
                                                                                          this.get('/BottomPane').el.show();
@@ -2927,6 +2929,7 @@ Window=new XObject({
                                                                                         
                                                                                             var js = this.get('/LeftTree.model').toJS();
                                                                                             if (!js || !js.length) {
+                                                                                                print("no data");
                                                                                                 return;
                                                                                                }
                                                                                                data = js[0];