<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1 +1 @@
-- Order of badges still non-deterministic (it seems)
+- Order of badges still non-deterministic (at least on Safari 3.x)</diff>
      <filename>BUGS</filename>
    </modified>
    <modified>
      <diff>@@ -3,6 +3,7 @@
 // The source-code should be pretty self-explanatory. Also look at the 
 // style.css to customize the badge.
 
+// for truncating the commit-id and commit-message in place
 function truncate(string, length, truncation) {
     length = length || 30;
     truncation = (typeof truncation == 'undefined') ? '...' : truncation;
@@ -88,10 +89,10 @@ jQuery.getJSON(&quot;http://github.com/api/v1/json/&quot; + badgeData[&quot;username&quot;] + &quot;/&quot; +
 });
 };
 
-// libs we need (mind the order!)
+// libs we need (mind the order!) (probably obsolete now)
 var myLibs = [&quot;everything&quot;];
 
-// For setting the loadpath correctly
+// Getting the path/url by looking at our main .js already included in the web-page
 var myScriptsDefs = document.getElementsByTagName(&quot;script&quot;);
 for (var i=0; i &lt; myScriptsDefs.length; i++) {
 	if (myScriptsDefs[i].src &amp;&amp; myScriptsDefs[i].src.match(/github-commit-badge\.js/)) {
@@ -104,18 +105,12 @@ for (var i=0; i &lt; myLibs.length; ++i) {
 	var myScript = document.createElement(&quot;script&quot;);
 	myScript.setAttribute(&quot;type&quot;,&quot;text/javascript&quot;);
 	myScript.setAttribute(&quot;src&quot;, this.path + &quot;lib/&quot; + myLibs[i] + &quot;.js&quot;);
-	if (i == myLibs.length-1) {	// timing problems
+	if (i == myLibs.length-1) {	// only load our main function after the lib has finished loading
 		myScript.setAttribute(&quot;onload&quot;,&quot;mainpage();&quot;);
 	};
 	document.getElementById(&quot;github-commit-badge-container&quot;).appendChild(myScript);
-	if (myLibs[i] == &quot;everything&quot;) {	// needed for using jQuery and prototype together
-		var myScript = document.createElement(&quot;script&quot;);
-		myScript.setAttribute(&quot;type&quot;,&quot;text/javascript&quot;);
-		myScript.appendChild(document.createTextNode(&quot;jQuery.noConflict();&quot;));
-		document.getElementById(&quot;github-commit-badge-container&quot;).appendChild(myScript);
-	};
-
 };
+
 // Write the stylesheet into the &lt;head&gt;
 myHead = document.getElementsByTagName(&quot;head&quot;)[0];
 myCSS = document.createElement(&quot;link&quot;);</diff>
      <filename>github-commit-badge.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>a2c656810da72ac3efd09c526df1357d65a33084</id>
    </parent>
  </parents>
  <author>
    <name>Johannes Gilger</name>
    <email>heipei@hackvalue.de</email>
  </author>
  <url>http://github.com/heipei/github-commit-badge/commit/40e3849517c282ede4be54148c61b2d6092ea802</url>
  <id>40e3849517c282ede4be54148c61b2d6092ea802</id>
  <committed-date>2008-08-20T07:09:08-07:00</committed-date>
  <authored-date>2008-08-20T07:09:08-07:00</authored-date>
  <message>Code cleanup, a few comments here and there</message>
  <tree>8d2f2d55e31e851f09ee6a67dcd3ffd731374b50</tree>
  <committer>
    <name>Johannes Gilger</name>
    <email>heipei@hackvalue.de</email>
  </committer>
</commit>
