[OpenLayers-Dev] $()
Erik Uzureau
erik.uzureau at metacarta.com
Tue Jul 24 16:09:17 EDT 2007
FWIW, OpenLayers is moving *away* from defining the $() operator as
defined in Prototype. We no longer include the Prototype library in
our build. Instead, we have cherry-picked some of the convenient
functions that we like from the library.
For the moment, the $() *is* still maintained in the OL release,
though you will notice that it is marked as deprecated and is not
actually used anywhere in the trunk. We would like to pull it
altogether, but unfortunately some OL users might depend on it and
we're trying not to break API until we do the 3.0 release.
---------- Forwarded message ----------
From: John Cole <john.cole at uai.com>
Date: Jul 24, 2007 3:01 PM
Subject: Re: [OpenLayers-Dev] {} or new Object()
To: Jeff Dege <jdege at korterra.com>, "dev at openlayers" <dev at openlayers.org>
I'll second the caution about prototyping basic items. I've found that you
cannot use M$ ajax framework with some prototype.net based kits because they
define the same thing differently.
I don't think OL should assume that it's the only JavaScript kit on the page
and would prefer it to use standard JS when possible.
My $.02
John
-----Original Message-----
From: dev-bounces at openlayers.org [mailto:dev-bounces at openlayers.org] On
Behalf Of Jeff Dege
Sent: Tuesday, July 24, 2007 2:51 PM
To: dev at openlayers
Subject: Re: [OpenLayers-Dev] {} or new Object()
Which is more likely to cause conflicts with other javascript class
frameworks?
Everybody and his brother seems to override $(), which causes no end of
headaches.
> -----Original Message-----
> From: dev-bounces at openlayers.org
> [mailto:dev-bounces at openlayers.org] On Behalf Of Erik Uzureau
> Sent: Tuesday, July 24, 2007 2:43 PM
> To: dev at openlayers
> Subject: [OpenLayers-Dev] {} or new Object()
>
> Paul has just gone vocal with his preference for using {} instead of
> "new Object()" for the instantantiation of a new object.
>
> We do not currently have any policy for this. Do people feel strongly
> one way or the other?
>
> Obviously it's not a big issue, but if there is broad support for
> doing it one way or the other, we might as well attempt to standardize
> a bit.
>
> Erik
> _______________________________________________
> Dev mailing list
> Dev at openlayers.org
> http://openlayers.org/mailman/listinfo/dev
>
_______________________________________________
Dev mailing list
Dev at openlayers.org
http://openlayers.org/mailman/listinfo/dev
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the sender. This message contains confidential information and is
intended only for the individual named. If you are not the named
addressee you should not disseminate, distribute or copy this e-mail.
_______________________________________________
Dev mailing list
Dev at openlayers.org
http://openlayers.org/mailman/listinfo/dev
More information about the Dev
mailing list