In an extern file, the two statements are almost equivalent. Extern files simply define symbols and types.
It would be good if they were marked with @CONST though. Chad Killingsworth On Jul 12, 8:43 am, Nianwei Liu <[email protected]> wrote: > Out of curiosity, why the static constants are written as a property > of prototype instead of the class itself? > > e.g > google.maps.MapTypeControlStyle.prototype.HORIZONTAL_BAR > > not > google.maps.MapTypeControlStyle.HORIZONTAL_BAR > > is that something the closure compiler wants? > > On Jul 11, 8:14 pm, Luke Mahé <[email protected]> wrote: > > > > > Hey Everyone, > > > Good news! The closure externs file is now being auto generated so Chad can > > now take a rest :) > > > The new URL of the externs file > > ishttp://closure-compiler.googlecode.com/svn/trunk/contrib/externs/maps... > > this file will be in sync with the latest version of the Maps API. > > > We will also be pushing out externs for each major version so you can build > > against a specific version if you need to. The URL to 3.1 > > ishttp://closure-compiler.googlecode.com/svn/trunk/contrib/externs/maps... > > > Thanks > > -- Luke > > > On Fri, Feb 5, 2010 at 9:32 AM, Daniel Lee <[email protected]> wrote: > > > This is great Chad. Thanks for getting this up. > > > > Let's discuss how we want to maintain this extern file moving forward as > > > new functions are introduced. > > > > Are you simply updating the file maually as new releases go up? It'd be > > > great to automate this process. > > > > On Wed, Feb 3, 2010 at 5:43 PM, Chad Killingsworth < > > > [email protected]> wrote: > > > >> I wrote it by hand. I started back in November and kept expanding it. > > >> The Closure-Compiler project started excepting contributed externs and > > >> so I sent it in. They helped review and clean up the file. > > > >> Chad Killingsworth > > > >> On Feb 3, 5:16 pm, Ben Appleton <[email protected]> wrote: > > >> > Cool - looks good. Did you parse that from the reference docs or > > >> > write it by hand? > > > >> > Ben > > > >> > On Thu, Feb 4, 2010 at 6:13 AM, Chad Killingsworth > > > >> > <[email protected]> wrote: > > >> > > For those wanting to use Closure-Compiler with a v3 API project, an > > >> > > extern file is now available. > > > >> > >http://closure-compiler.googlecode.com/svn/trunk/contrib/externs/goog. > > >> .. > > > >> > > Chad Killingsworth > > > >> > > -- > > >> > > 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]<google-maps-js-api-v3%2B > > >> [email protected]> > > >> . > > >> > > For more options, visit this group athttp:// > > >> groups.google.com/group/google-maps-js-api-v3?hl=en. > > > >> -- > > >> 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]<google-maps-js-api-v3%2B > > >> [email protected]> > > >> . > > >> For more options, visit this group at > > >>http://groups.google.com/group/google-maps-js-api-v3?hl=en. > > > > -- > > > Daniel Lee > > > Developer Programs Engineer > > > Google, Inc. > > > 345 Spear Street > > > San Francisco, CA 94105 > > > 650 253 0967 > > > > -- > > > 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]<google-maps-js-api-v3%2B > > > [email protected]> > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/google-maps-js-api-v3?hl=en. -- 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.
