<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -22,12 +22,12 @@ Gadgets.prototype = {
 			for (var p in gadgets._participants) {
 				var part = gadgets._participants[p];
 				var doc = part.part.document;
-				doc.write(&quot;&lt;script src=\&quot;jquery-1.3.2.min.js\&quot;&gt;&lt;/script&gt;&quot;);
-				doc.write(&quot;&lt;script&gt;var _participant_id=&quot;+part.id+&quot;;&lt;/script&gt;&quot;);
+				doc.write(&quot;&lt;script src=\&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js\&quot;&gt;&lt;/script&gt;&quot;);
+				doc.write(&quot;&lt;script&gt;document._participant_id=&quot;+part.id+&quot;;&lt;/script&gt;&quot;);
 				doc.write(&quot;&lt;script src=\&quot;gadgetemulator.js\&quot;&gt;&lt;/script&gt;&quot;);
 				doc.write(&quot;&lt;h3&gt;Participant &quot;+part.id+&quot; - &quot; +part.displayName+&quot;&lt;/strong&gt;&quot;);
 				doc.write(text);
-				doc.write(&quot;&lt;script&gt;gadgets.util._ready()&lt;/script&gt;&quot;);
+				doc.write(&quot;&lt;script&gt;gadgets.util._ready(&quot;+part.id+&quot;)&lt;/script&gt;&quot;);
 			}
 		}, error: function() { alert(&quot;Load failed&quot;); }
    	  })
@@ -85,11 +85,11 @@ Gadgets.prototype = {
 
 	util: { 
 		registerOnLoadHandler: function(f) {
-		this._onload_handler = f;
+			document._gadgets_onload_handler = f;
 	f();
 		},
-		_ready: function() {
-			if (this._onload_handler) this._onload_handler();
+		_ready: function(pid) {
+			if (document._gadgets_onload_handler) document._gadgets_onload_handler();
 		},
 		getUrlParameters: function() { return {wave: new Wave()}; }
 	},
@@ -99,7 +99,7 @@ Gadgets.prototype = {
 			window.top.gadgets._call(cmd,params);
 		},
 		register: function(endpoint, cb) {
-			window.top.gadgets._register(_participant_id,endpoint,cb);
+			window.top.gadgets._register(document._participant_id,endpoint,cb);
 		}
 	}
 }</diff>
      <filename>gadgetemulator.js</filename>
    </modified>
    <modified>
      <diff>@@ -7,13 +7,13 @@ iframe { background: #ffffff; width: 49%; height: 50%; }
 #state  { background: #cccccc; width: 99%; height: 25%; font-family: courier;}
 &lt;/style&gt;
 
-&lt;script src=&quot;jquery-1.3.2.min.js&quot;&gt;&lt;/script&gt;
+&lt;script src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js&quot;&gt;&lt;/script&gt;
 &lt;script src=&quot;gadgetemulator.js&quot;&gt;&lt;/script&gt;
 &lt;script type=&quot;text/javascript&quot; src=&quot;http://wave-api.appspot.com/public/wave.js&quot;&gt;&lt;/script&gt;
 &lt;/head&gt;
 &lt;body&gt;
 
-Quick and dirty &lt;a href=&quot;http://wave.google.com/&quot;&gt;Google Wave&lt;/a&gt; Gadget API emulator. By &lt;a href=&quot;http://www.hokstad.com/blog&quot;&gt;Vidar Hokstad&lt;/a&gt;
+Quick and dirty &lt;a href=&quot;http://wave.google.com/&quot;&gt;Google Wave&lt;/a&gt; Gadget API emulator. By &lt;a href=&quot;http://www.hokstad.com/blog&quot;&gt;Vidar Hokstad&lt;/a&gt; (&lt;a href=&quot;http://www.twitter.com/vhokstad&quot;&gt;Follow me on Twitter&lt;/a&gt;) -
 See &lt;a href=&quot;http://www.hokstad.com/google-wave-gadget-emulator.html&quot;&gt;This blog post for more info&lt;/a&gt;
 &lt;br&gt;
 &lt;form id=&quot;load&quot; method=&quot;get&quot; action=&quot;#&quot;&gt;</diff>
      <filename>gadgets.html</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>jquery-1.3.2.min.js</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>2f9f7c54d389f01fcad12734a89e2c40b7aecfd8</id>
    </parent>
  </parents>
  <author>
    <name>Vidar Hokstad</name>
    <email>vidar@hokstad.com</email>
  </author>
  <url>http://github.com/vidarh/wave-gadget-emulator/commit/930f934601aa0b67f6484933ed2d663d6acdc274</url>
  <id>930f934601aa0b67f6484933ed2d663d6acdc274</id>
  <committed-date>2009-06-04T01:43:31-07:00</committed-date>
  <authored-date>2009-06-04T01:43:31-07:00</authored-date>
  <message>Couple of minor fixes and stripped out jquery and pointed to the Google hosted version instead</message>
  <tree>801a66f4d2920a078dc3ebf59ba53c60bedfa259</tree>
  <committer>
    <name>Vidar Hokstad</name>
    <email>vidar@hokstad.com</email>
  </committer>
</commit>
