apneadiving / Google-Maps-for-Rails

Enables easy Google map + overlays creation in Ruby apps
https://apneadiving.github.io/
MIT License
2.26k stars 382 forks source link

Sidebar crashes in ie8. #317

Closed LosVogas closed 10 years ago

LosVogas commented 11 years ago

Hi, my map breaks in ie8 and older. Other browsers can handle everything flawlessly.

When I try to debug in ie8, code stops at following code.

,e.prototype.createSidebar=function(e){
            var t,n,r,i,s;
            if(this.markers_conf.list_container)return s=document.getElementById(this.markers_conf.list_container),i=document.createElement("li"),t=document.createElement("a"),t.href="javascript:void(0);",r=e.sidebar!=null?e.sidebar:"Marker",t.innerHTML=r,n=this,t.onclick=this.sidebar_element_handler(n,e.serviceObject,"click"),i.appendChild(t),s.appendChild(i)
        }

my gmaps-code is:

<%= gmaps( "markers" => (:data => @gmaps, "options" => { "list-container" => "markers-list" }}) %>

Looking for help! :-)