<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -256,15 +256,16 @@ Object.extend(Jester.Resource, {
   },
   
   _interpolate: function(string, params) {
+    if (!params) return string;
+    
     var result = string;
-    for(var val in params) {
-      var re = new RegExp(&quot;:&quot; + val, &quot;g&quot;);
-      if(result.match(re))
-      {
-        result = result.replace(re, params[val]);
-        delete params[val];
+    params.each(function(pair) {
+      var re = new RegExp(&quot;:&quot; + pair.key, &quot;g&quot;);
+      if (result.match(re)) {
+        result = result.replace(re, pair.value);
+        params.unset(pair.key);
       }
-    }
+    });
     return result;
   },
   </diff>
      <filename>jester.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>58b6e0740e7af81179b667526b861fd059799630</id>
    </parent>
  </parents>
  <author>
    <name>Eric Mill</name>
    <email>eric@ericbot.(none)</email>
  </author>
  <url>http://github.com/thoughtbot/jester/commit/7c67dbd2a0862cabf3022e2cbd7e263563d2907b</url>
  <id>7c67dbd2a0862cabf3022e2cbd7e263563d2907b</id>
  <committed-date>2008-04-25T14:45:05-07:00</committed-date>
  <authored-date>2008-04-25T14:45:05-07:00</authored-date>
  <message>Fixed incompatibility with Prototype 1.6, URLs were being incorrectly generated.</message>
  <tree>a74061177a027afdafbd0ccf996cefaafd8cd1a2</tree>
  <committer>
    <name>Eric Mill</name>
    <email>eric@ericbot.(none)</email>
  </committer>
</commit>
