[OpenLayers-Dev] OL build: Why put in the code compressed code deprecated?

Eric Lemoine eric.lemoine at camptocamp.com
Tue Sep 27 00:42:23 EDT 2011

On Sunday, September 25, 2011, Xavier Mamano (jorix) <
xavier.mamano at gmail.com> wrote:
> Hi,
> In OL exists code labeled as *Deprecated* but it is not possible to
> exclude deprecated code in compressed code, examples: "Util.js",
> "BaseTypes/Class.js", "BaseTypes/Element.js" ...
> If these source files are split into two, for example "Util.js" and
> "Util-deprecate.js" (with "@requires OpenLayers/Util.js"), so could easily
> create configuration files to exclude deprecated code.


I think that's an interesting idea.

People who do use deprecated code in their apps would need to include
*-deprecate.js files in their builds but I guess this is something we can
document in the release notes.

For classes I guess we would have lines like
"MyClass.prototype.myDeprecatedFunction = function() { ... };" in the
-deprecate.js files.

I'd see this as a smooth transition towards actually removing deprecated
code, both for users and us developers.

What do others think about it?

Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine at camptocamp.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20110927/45295e02/attachment.html

More information about the Dev mailing list