[Greasemonkey] Re: delete object attribute?

Andre gm at andrecgn.de
Mon Feb 6 10:05:58 EST 2006


Perfect, thanks!!
Andre

Jeremy Dunck wrote:
> On 2/5/06, Andre <gm at andrecgn.de> wrote:
>> more a JS question than GM ... but ...
>>
>> I am using an object as an associative array:
>>
>>         var x = {};
>>         x['foo'] = 'bar';
> 
> 
> var x = {}
> x['a'] = 1
> uneval(x)
> => ({a:1})
> delete x['a']
> uneval(x)
> => ({})



More information about the Greasemonkey mailing list