<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,6 +1,5 @@
 
 var Routing = {
-	host: &lt;%= &quot;#{request.protocol}#{request.host_with_port}&quot;.inspect %&gt;,
 
 	get_path: function (segments, options, overrides) {
 		var extras = null;
@@ -46,13 +45,13 @@ var Routing = {
 
         &lt;%= name %&gt;_path: function (overrides) {
                 var options = {
-                        &lt;% route.significant_keys.each do |key| -%&gt;
-                        &lt;%= key %&gt;: &lt;%= route.defaults[key].nil? ? &quot;''&quot; : &quot;'#{route.defaults[key]}'&quot; %&gt;,
-                        &lt;% end -%&gt;
+                        &lt;%= route.significant_keys.collect { |key| &quot;#{key}: '#{route.defaults[key]}'&quot; }.join(&quot;,\n\t\t\t&quot;) %&gt;
                 };
                 return Routing.get_path(&quot;&lt;%= route.segments.collect(&amp;:to_s) %&gt;&quot;, options, overrides);
         },
 
 &lt;% end -%&gt;
 
+        host: &lt;%= &quot;#{request.protocol}#{request.host_with_port}&quot;.inspect %&gt;
+
 };</diff>
      <filename>views/named_routes/generate.js.erb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>89c3aa56fbde7128d60f1bf472c9a7b1de2a1753</id>
    </parent>
  </parents>
  <author>
    <name>Ripta Pasay</name>
    <email>github@r8y.org</email>
  </author>
  <url>http://github.com/jsierles/js_named_routes/commit/dcd7830f881d1824cd37b27fcfdbae7f495b00e2</url>
  <id>dcd7830f881d1824cd37b27fcfdbae7f495b00e2</id>
  <committed-date>2009-02-16T08:50:18-08:00</committed-date>
  <authored-date>2009-02-16T08:50:18-08:00</authored-date>
  <message>Fix &quot;last comma&quot; issue in MSIE by moving host key to the end and building significant keys manually</message>
  <tree>5fa00cd2dfa031feeb85c57da60d15f624599264</tree>
  <committer>
    <name>Ripta Pasay</name>
    <email>github@r8y.org</email>
  </committer>
</commit>
