On Dec 16, 5:15 am, Ben Appleton <[email protected]> wrote:
> Got it:
> - PolyCluster (http://www.provide.net/~bratliff/polycluster/polycluster.js)
> inherits from google.maps.OverlayView
> - (google.maps.)OverlayView inherits from google.maps.MVCObject
> - which defines MVCObject.prototype.L
> But:
> - PolyCluster.prototype.repair includes this code:
>     l=this.L; if(l) { ... }
> The first time PolyCluster runs, the existence of
> MVCObject.prototype.L confuses the if statement, and PolyCluster
> proceeds to presume that .L is a DOM element.

Thanks Ben,

I have been concerned about namespace collisions.  I believe Mike
Williams said you always used two character names where the first
character is lower case.  I have started to move everything to child
properties of one parent object which will reduce the chance of a
conflict.  I will also explicitly set instance "this.whatever"
variables to "null" rather than assuming "undefined".  Do you have
safe naming guidelines ?

--

You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.


Reply via email to