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

Stéphane Brunner stephane.brunner at camptocamp.com
Tue Sep 27 10:46:38 EDT 2011


also +1 ;-)

CU
Stéphane

2011/9/27 Paul Spencer <pagameba at gmail.com>:
> 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
>
>
> _______________________________________________
> Dev mailing list
> Dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-dev
>
>



-- 
camptocamp.com
mapfish.org


More information about the Dev mailing list