On Tue, Dec 6, 2011 at 9:14 AM, Dave Potts <[email protected]> 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 : [email protected]
http://www.camptocamp.com
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to