On Aug 3, 8:24 pm, Nick <gummyb...@gmail.com> wrote: > I will find a different means of inheritance in my code.
here's an article comparing inheritance in the Closure library with the techniques from Crockford's book: http://bolinfest.com/javascript/inheritance.php The V3 MarkerClusterer has an implementation of extend() which is quite interesting: function MarkerClusterer(map, opt_markers, opt_options) { this.extend(MarkerClusterer, google.maps.OverlayView); ... } MarkerClusterer.prototype.extend = function(obj1, obj2) { return (function(object) { for (property in object.prototype) { this.prototype[property] = object.prototype[property]; } return this; }).apply(obj1, [obj2]); }; ... -- 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 google-maps-js-api...@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.