On Jun 24, 12:47 pm, Andrew Leach <andrew.leac...@googlemail.com>
wrote:
>
> "g" is a variable in scope at the time the code fails.
>
> I guess that it's looping through properties of a particular object and
> reaching something it knows nothing about. By extending *every* object, you
> are messing with API objects, not just the ones you really need to alter (if
> indeed you do really need to).

Until I can spend time determining whether or not I can modify the
existing Map code (in my Util.js file) to use a different method of
hashing, I changed the code to extend String instead of Object, since
I determined that it's always a string it's getting a hash code for.
This seems to have eliminated the error I was running into.

> One suggestion which was made 2-3 years ago was to put the map in an iframe
> which doesn't use the particular troublesome library. That was when
> prototype.js extended Object.

That's a decent workaround that I'll have to keep in mind if I run
into any further complications; thanks for the suggestion.

> Please keep correspondence in the Group rather than to individuals: I've
> copied this to the Group thread.
>
> Andrew

Sorry about that.  I thought my question might be too specific to my
code and therefore wouldn't be beneficial to others (and end up
cluttering the thread).

Thanks again for your help.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to 
google-maps-api+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to