if you allocate a new object the old will be cleaned unless referenced somewhere. but your example won't work. unlisted already exists and cant be defined as globel once again.
To have scoping correctly working, you will need to use strict / superstrict at the top of your files as well. (this will prevent you from doing annoying variable write errors as well)
To have scoping correctly working, you will need to use strict / superstrict at the top of your files as well. (this will prevent you from doing annoying variable write errors as well)