cybersthang / gmaps-utility-library-dev

Automatically exported from code.google.com/p/gmaps-utility-library-dev
0 stars 0 forks source link

ExtInfoWindow.prototype.ajaxRequest_ does not test for ExtInfoWindow existence #21

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. create a marker that opens an ExtInfoWindow on click, but closes the
ExtInfoWindow on double click.
2. double click on the marker.
3. a javascript error occurs because ExtInfoWindow.prototype.ajaxRequest_
does not test for ExtInfoWindow existence.

What is the expected output? What do you see instead?

The expected output is that no javascript error occurs. However, a
"getExtInfoWindow() has no properties" error occurs at the line "var
infoWindow =
document.getElementById(thisMap.getExtInfoWindow().infoWindowId_ +
'_contents');", because the ExtInfoWindow is already closed by the double
click action.

What version of the product are you using? On what operating system?

Release (1.0) Version of ExtInfoWindow.

Please provide any additional information below.

Put "if (thisMap.getExtInfoWindow() != null) {" before "var infoWindow =
document.getElementById(thisMap.getExtInfoWindow().infoWindowId_ +
'_contents');" and "}" after the resize action, and this issue is resolved.

Original issue reported on code.google.com by adwin.ti...@gmail.com on 11 Jan 2008 at 7:40

GoogleCodeExporter commented 8 years ago

Original comment by lem...@gmail.com on 23 May 2008 at 4:14

GoogleCodeExporter commented 8 years ago
Fixed in r611.

Original comment by lem...@gmail.com on 26 May 2008 at 6:21