My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 2063: Variable Name Collisions when Minifying OverlayView Subclasses
2 people starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  d.l%[email protected]
Closed:  Jan 2010


Sign in to add a comment
 
Reported by [email protected], Jan 6, 2010
OverlayView has a number of undocumented prototypes which tend to collide
with variables/prototypes of subclasses when compressed with a program such
as the Google Closure-Compiler.

Since these are undocumented, there is no way to know/avoid using these
names in derived objects.

Example:
function MyOverlay () {
   this.l = null; //Collides with undocumented function of
google.maps.OverlayView.
}
MyOverlay.prototype = new google.maps.OverlayView();
Jan 7, 2010
#1 [email protected]
Hm, this is indeed a tricky problem.

I'll raise this concern with the team since it's not obvious yet what the workaround
could be other than to prevent property names of the custom OverlayView object from
being compiled.
Status: Started
Owner: [email protected]
Jan 11, 2010
#2 [email protected]
(No comment was entered for this change.)
Status: FixedNotReleased
Labels: Internal-2330516
Jan 19, 2010
#3 [email protected]
(No comment was entered for this change.)
Status: Fixed
Labels: Fixed-25
Sign in to add a comment

Powered by Google Project Hosting