On 16 Dez., 02:40, William <william.g...@gmail.com> wrote:
> On Dec 16, 3:09 am, "warden [Andrew Leach - Maps API Guru]"
>
> <andrew.leac...@googlemail.com> wrote:
> > Do you mean __proto__? With two underscores at both ends, it is the
> > internal reference to the object from which properties are inherited.
>
> __proto is defined the Google Maps Javascript API.   Not sure what
> it's for.
>
> __type is defined in the Google Maps Javascript API and I think it is
> used to keep track of class inheritance, along with a property called
> __super.
>
> Modifying __type by saying Object.prototype.__type = [] will surely
> cause side effects in the Google API.

I'm sorry, I was addled. Of course, I meant __type.

> The original problem is because the Trivago javascript library
> requires the clone() method available on all objects.
>
> For every object x there needs to be a function x.clone() which
> returns a copy of x, defined recursively.
>
> Maybe it's possible to rewrite this as a global function called
> CloneObject(x) which returns a copy of x?

It's definitely not the.clone(); member in an objects prototype
itself. I've uncommented it - it's not required at our initial page -
and started the map (without the __type workaround). The exception
still occurs - but now it's "h[af] is undefined"...
--~--~---------~--~----~------------~-------~--~----~
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