propose-patch
[org.ibex.core.git] / src / org / xwt / builtin / splash.xwt
index a62061c..b0fc151 100644 (file)
             var new_xwt = xwt.clone(new_rr);
 
             xwt.thread = function() {
-for(var i=0; 100>i; i++) {
-progress(i, 100);
-xwt.thread.yield();
-}
-                new_xwt.apply(xwt.box, new_xwt["main.xwt"]);
-                thisbox = null;
+                for(var i=0; 100>i; i++) {
+                progress(i, 100);
+                xwt.thread.yield();
             }
+            new_xwt.apply(xwt.box, new_xwt["main.xwt"]);
+            thisbox = null;
+        }
 xwt.log.println("leaving");
         }
 
@@ -76,3 +76,4 @@ xwt.log.println("leaving");
 
     </template>
 
+</xwt>
\ No newline at end of file