The buttons were the problem, I'll have to watch things like that in the future. Thanks!
Brian > 2011/3/1 Brian Earwood <[email protected]>: >> Here is my controller class, which I use to create the rotators: >> http://jsfiddle.net/brianearwood/PKrz8/ >> Basically, I'm over-writing the previous rotator with a new one: >> var rotator = new Rotator(args); >> The old Rotator disappears but when I click to advance to the next image, >> two images (one from the old Rotator/image array and one from the new >> Rotator/image array) get added to the DOM and slide in. Seemingly no amount >> of setting the rotator variable or elements inside of the Rotator class to >> null lets the old one get garbage collected. > The 2 buttons refence to an object, The object is still there, > although the _rotator variable is not. If you want to get rid of the > object, get rid of all the references to it. > > > -- > Poetro > > -- > 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] -- 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]
