[OpenLayers-Dev] {} or new Object()
Christopher Schmidt
crschmidt at metacarta.com
Tue Jul 24 16:11:32 EDT 2007
On Tue, Jul 24, 2007 at 02:43:09PM -0500, Erik Uzureau wrote:
> Paul has just gone vocal with his preference for using {} instead of
> "new Object()" for the instantantiation of a new object.
Let me clarify this:
{}
and
new Object()
are both built into Javascript. This is not something that can be
overridden -- they're just two different syntaxes for the exact same
operation.
Conflicts with other Javascript frameworks are not an issue here.
Regards,
--
Christopher Schmidt
MetaCarta
More information about the Dev
mailing list