<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -15,7 +15,6 @@ h2. Example
 &lt;code&gt;&lt;pre&gt;
 
   &lt;script src=&quot;http://maps.google.com/maps/api/js?sensor=false&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
-  &lt;script src=&quot;/javascripts/prototype.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
   &lt;script src=&quot;/javascripts/sumo/microformat.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
   &lt;script src=&quot;/javascripts/sumo/hcard.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
   &lt;script src=&quot;/javascripts/simple-maps/map.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
@@ -62,7 +61,4 @@ h2. Example
 
 h2. TODO
 
-* Remove dependency on prototype[1]
 * More configurable
-
-fn1. Note: prototype.js is only used for loading the map on page load (last 5 lines of map.js). Simply replace this, or call Map.display() on your own to remove the dependency.</diff>
      <filename>Readme.textile</filename>
    </modified>
    <modified>
      <diff>@@ -9,7 +9,7 @@ var Map = {
       +address.streetAddress
       +'&lt;br/&gt;'
       +address.locality+', '+address.region+' '+address.postalCode+' '+address.country)
-    .gsub('undefined', '');
+    .replace(/undefined/, '');
   },
   
   plotPoint: function(hcard, point) {
@@ -122,9 +122,14 @@ var Map = {
   }
 }
 
-// Dunno why IE doesn't like dom:loaded.
-if (Prototype.Browser.IE) {
-  Event.observe(window, &quot;load&quot;, Map.display);
+if (typeof Prototype !== 'undefined') {
+  document.observe('dom:loaded', Map.display)
+} else if (typeof jQuery !== 'undefined') {
+  jQuery(Map.display)
 } else {
-  Event.observe(window, &quot;dom:loaded&quot;, Map.display);
+  if (window.addEventListener)
+    window.addEventListener(&quot;load&quot;, Map.display, false);
+  else {
+    window.attachEvent(&quot;onload&quot;, Map.display);
+  }  
 }</diff>
      <filename>map.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>da5090d15853dc9992d722c8d07be3aa601784f9</id>
    </parent>
  </parents>
  <author>
    <name>Elijah Miller</name>
    <email>elijah.miller@gmail.com</email>
  </author>
  <url>http://github.com/collectiveidea/simple-maps/commit/0c2deb7392e4f56926c479a5d0254789140c88e2</url>
  <id>0c2deb7392e4f56926c479a5d0254789140c88e2</id>
  <committed-date>2009-09-30T12:17:11-07:00</committed-date>
  <authored-date>2009-09-30T12:17:11-07:00</authored-date>
  <message>JavaScript framework agnostic.

Uses Prototype or jQuery where possible for speedups, but falls back to native methods.</message>
  <tree>345020c1234a99bb158ac98278a7b46115297761</tree>
  <committer>
    <name>Elijah Miller</name>
    <email>elijah.miller@gmail.com</email>
  </committer>
</commit>
