On Fri, Feb 4, 2011 at 3:32 PM, Lasse Reichstein <[email protected] > wrote:
> On Fri, 04 Feb 2011 20:10:05 +0100, jemptymethod <[email protected]> > wrote: > > I want to delete a couple of object properties, but first save those >> properties, then add them back after I'm done processing the object >> *without* those properties. >> > > Seems reasonable. > > > But I can't do the following, when I log the object to the console, >> it's apparent the properties didn't get deleted, presumably because to >> do so would leave dangling references, i.e. the two vars: >> >> var title = '' + this.args.title; >> var mode = '' + this.args.mode; >> > > Here you convert the current values to strings. I don't see why that should > be necessary in order to save the values. Thanks for the response. You'd think not, but in my case, if I did not store copies of the strings, I could not delete the object properties. Could possibly be some ExtJS weirdness where it's monkey-patched Object and/or delete -- To view archived discussions from the original JSMentors Mailman list: http://www.mail-archive.com/[email protected]/ To search via a non-Google archive, visit here: http://www.mail-archive.com/[email protected]/ To unsubscribe from this group, send email to [email protected]
