[OpenLayers-Users] Re moved markers still occupy memory :/

Eric Lemoine eric.c2c at gmail.com
Sat Aug 9 08:50:01 EDT 2008


OpenLayers does not modify the prototypes of native JS types (Array,
Function, etc.). Eric

2008/8/9, jax at schildmos.nl <jax at schildmos.nl>:
> I stand corrected.. (again) :-)
>
> Still.. IE6 doesn't support it, so in the case of IE 6 it then probably gets
> added to array's prototype somewhere. I searched for this possibility but
> couldn't find it in the code. I guess I spoke too soon. My apologies.
>
>
>> Er, I think this is a very unlikely statement... removeItem is used
>> extensively throughout the code, and if it didn't work in IE6, we'd have
>> a lot of trouble.
>>
>> I've just confirmed via Firebug Lite in IE that
>> OpenLayers.Util.removeItem(['1','2','3'], '2')
>>
>> returns:
>>
>> ['1', '3']
>>
>> So, I don't think looking at OpenLayers.Util.removeItem askance is
>> likely to work well.
>>
>> Regards,
>> --
>> Christopher Schmidt
>> MetaCarta
>>
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>



More information about the Users mailing list