[OpenLayers-Dev] Re: lib evaluation performance

Xavier Mamano (jorix) xavier.mamano at gmail.com
Tue Nov 2 10:47:29 EDT 2010



Eric Lemoine-2-2 wrote:
> 
> Hi
> 
> To follow up on <http://trac.osgeo.org/openlayers/ticket/2899> I've
> run experiments ...
> 
> This change cannot be done in 2.x as it will break
> application code defining classes using OpenLayers.Class...
> 
> Thanks,
> 
> --
> 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
> 
> 
Hi, 

And more... 2.x code can be compatible with pure JavaScript. It is only
necessary:

var A = function () {...} / / constructor
A.prototype = {
    ...
    initialize: function () { // * Deprecated *
        A.apply(this, arguments);
    }
}, / / Prototype definition 


-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/lib-evaluation-performance-tp5696447p5697727.html
Sent from the OpenLayers Dev mailing list archive at Nabble.com.


More information about the Dev mailing list