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

Paul Spencer pagameba at gmail.com
Tue Sep 27 09:25:53 EDT 2011


I like this proposal!

On 2011-09-27, at 12:42 AM, Eric Lemoine wrote:

> 
> 
> 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.
> 
> Hi
> 
> 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
> http://www.camptocamp.com
> 
> _______________________________________________
> Dev mailing list
> Dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20110927/1bbc85c8/attachment.html


More information about the Dev mailing list