Sample/Window.js
authorAlan Knowles <alan@akbkhome.com>
Mon, 5 Jul 2010 07:53:47 +0000 (15:53 +0800)
committerAlan Knowles <alan@akbkhome.com>
Mon, 5 Jul 2010 07:53:47 +0000 (15:53 +0800)
Sample/Window.js

index a3adea1..a3fc47f 100644 (file)
@@ -2943,13 +2943,13 @@ Window=new XObject({
                                                                                         
                                                                                         var project = this.get('/Window.LeftTree').getActiveFile().project;
                                                                                         //print (project.fn);
-                                                                                        
-                                                                                        project.runhtml  = project.runhtml || '';
+                                                                                        // set it to non-empty.
+                                                                                        project.runhtml  = project.runhtml || '<script type="text/javascript"></script>'; 
                                                                                         
                                                                                     
                                                                                         this.runhtml  = this.runhtml || '';
                                                                                         
-                                                                                        if (!this.runhtml.length || project.runhtml != this.runhtml) {
+                                                                                        if (project.runhtml != this.runhtml) {
                                                                                             // then we need to reload the browser using
                                                                                             // load_html_string..