Subj : Setter and Getter inherited from a prototype To : netscape.public.mozilla.jseng From : =?ISO-8859-1?Q?Georg_Maa=DF?= Date : Sun Mar 16 2003 08:20 am If my object "A" inherits a getter or setter for property "a" from the prototype "B", assigning a value to this property does not really replace the inherited behaviour by a own property of object "A". The inherited getters and and setters on this property remain active. This is an unexpected behaviour. Is this intented? How can I throw away such inherited setters and getters? I tried the delete operator, but this was useless. The inherited getter is still active. js> function A(){} js> function B(){this.__defineGetter__('a',function(){return false;})} js> A.prototype=new B; [object Object] js> a=new A; [object Object] js> a.a=6; 5: TypeError: setting a property that has only a getter js> delete a.a; true js> a.a=6; 7: TypeError: setting a property that has only a getter js> a.a false js> js> a.hasOwnProperty('a'); true -- Georg Maaß - bioshop.de D-93466 Chamerau, Roßbergweg 42 JavaScript, C++ Engineering - The ultimative DHTML engine: http://gml-modul.sourceforge.net - http://sourceforge.net/projects/gml-modul .