Modified: jquery/jquery.xsajax.test2.js
===================================================================
--- jquery/jquery.xsajax.test2.js 2007-04-12 16:56:15 UTC (rev 28)
+++ jquery/jquery.xsajax.test2.js 2007-04-12 19:00:35 UTC (rev 29)
@@ -1,8 +1,10 @@
/* just produce some distinguishable output */
-$('span#output2').html("script #2 loaded");
-var j = 42;
-setInterval(function () {
- $('span#output2').html("j=" + j++);
-}, 1000);
+(function(){
+ $('span#output2').html("script #2 loaded");
+ var j = 42;
+ setInterval(function () {
+ $('span#output2').html("j=" + j++);
+ }, 1000);
+})();