ipowerstudio / jquery-ui-map

Automatically exported from code.google.com/p/jquery-ui-map
0 stars 0 forks source link

window.google undefined at eval time when lazy loading maps #50

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. lazy load google maps so window.google is available after this lib has been 
evaled

What is the expected output? What do you see instead?
Error on line 340 saying google maps is undefined. If you change from:
  if ( google.maps && this[0] instanceof google.maps.MVCObject ) {
to:
  if ( window.google && google.maps && this[0] instanceof google.maps.MVCObject ) {
everything works fine.

What version of the product are you using?
3.0-rc

Original issue reported on code.google.com by and...@deandrade.com.br on 21 May 2012 at 1:34