googlearchive / js-info-bubble

A library for customizable CSS3 InfoWindows in the Google Maps JavaScript API v3
Apache License 2.0
226 stars 183 forks source link

IE11: this.get('closeSrc') is undefined #4

Open palsingh opened 9 years ago

palsingh commented 9 years ago

In IE11, this.get('closeSrc') initiates a request to /undefined. Setting it in config while creating new instance of infobubble doesn't make any difference. bug

rytmis commented 7 years ago

The problem is that setValues is called after buildDom_ in the constructor. Reversing the order doesn't work either, because it fires change callbacks for properties where the DOM is expected to already exist.

Adding:

  this.set('closeSrc', options['closeSrc']);

before the buildDom_ call in the ctor gets rid of the problem, but it seems a bit hacky.

cnsgithub commented 7 years ago

This is reproducible on Firefox 52.0.2 (latest) also and sometimes is responsible for crashing our sessions. Are there any plans to fix it?