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

realjax jax at schildmos.nl
Sat Aug 9 19:21:00 EDT 2008


You better take a look at OpenLayers.Util then. 


Eric Lemoine-3 wrote:
> 
> 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
>>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
> 
> 

-- 
View this message in context: http://www.nabble.com/Removed-markers-still-occupy-memory-%3A--tp18866082p18909391.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.




More information about the Users mailing list