timur
02-18-2003, 03:48 PM
// I've created an object of my own class
function myClass(var1, var2, var3){
this.var1 = var1;
this.var2 = var2;
this.var3 = var3;
}
obj1 = new myClass('a', 'b', 'c');
// now i need to destroy this object
obj1 = null;
/* but whn i do that the typeof(obj1) is still 'Object'.
is it possible to do something that type of my object
will become 'undefined'? */
function myClass(var1, var2, var3){
this.var1 = var1;
this.var2 = var2;
this.var3 = var3;
}
obj1 = new myClass('a', 'b', 'c');
// now i need to destroy this object
obj1 = null;
/* but whn i do that the typeof(obj1) is still 'Object'.
is it possible to do something that type of my object
will become 'undefined'? */