[OpenLayers-Users] possible bug in Point.js, Line.js, Polygon.js etc from OL 2.11

Eric Lemoine eric.lemoine at camptocamp.com
Tue Dec 6 03:22:45 EST 2011


On Tue, Dec 6, 2011 at 9:14 AM, Dave Potts <dave.potts at pinan.co.uk> wrote:
>
>
>
> All of the symbolizer start code from the directory OpenLayers/Symbolizer
> includes the following code
>
>
> initialize: function(config){
>
>    OpenLayers.Symbolizer.prototype.initializer.apply(this,arguments);
> }
>
> Where the parameters are listed in the comments as config
>
> It that is the case the code should the code read ?
>
> initialize: function(config){
>
>    OpenLayers.Symbolizer.prototype.initializer.apply(this,config);

No.

`OpenLayers.Symbolizer.prototype.initialize.apply(this, arguments)`

is correct.

And both

`OpenLayers.Symbolizer.prototype.initialize.call(this, config);`

and

`OpenLayers.Symbolizer.prototype.initialize.apply(this, [config]);`

would also be correct.

Cheers,

-- 
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


More information about the Users mailing list