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 <[EMAIL PROTECTED]>
Date: Jul 24, 2007 3:01 PM
Subject: Re: [OpenLayers-Dev] {} or new Object()
To: Jeff Dege <[EMAIL PROTECTED]>, "[EMAIL PROTECTED]" <[email protected]>


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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Jeff Dege
Sent: Tuesday, July 24, 2007 2:51 PM
To: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Erik Uzureau
> Sent: Tuesday, July 24, 2007 2:43 PM
> To: [EMAIL PROTECTED]
> 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
> [email protected]
> http://openlayers.org/mailman/listinfo/dev
>
_______________________________________________
Dev mailing list
[email protected]
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
[email protected]
http://openlayers.org/mailman/listinfo/dev
_______________________________________________
Dev mailing list
[email protected]
http://openlayers.org/mailman/listinfo/dev

Reply via email to