tot - Difference in jquery/jquery.xsajax.test1.js versions 26 and 29
Not logged in
[Browse]  [Home]  [Login]  [Reports]  [Search]  [Timeline
  [History
Modified: jquery/jquery.xsajax.test1.js
===================================================================
--- jquery/jquery.xsajax.test1.js	2007-04-12 16:56:15 UTC (rev 28)
+++ jquery/jquery.xsajax.test1.js	2007-04-12 19:00:35 UTC (rev 29)
@@ -1,8 +1,10 @@
 
 /* just produce some distinguishable output */
-$('span#output1').html("script #1 loaded");
-var i = 7;
-setInterval(function () {
-    $('span#output1').html("i=" + i++);
-}, 1000);
+(function(){
+    $('span#output1').html("script #1 loaded");
+    var i = 7;
+    setInterval(function () {
+        $('span#output1').html("i=" + i++);
+    }, 1000);
+})();