Subj : Re: [spidermonkey] getter/setter for all properties of an object To : netscape.public.mozilla.jseng From : James Ross Date : Fri Aug 05 2005 03:54 pm franck wrote: > Hello, > > I am tring to make a little object that allows me to listen all > properties get and set of an object ( a kind of super watch ). > All is working properly, however I noticed that even if I defined my own > setProperty, the property is stored in the object ( I can see it using a > for-in loop ). > I wondering if it is possible to avoid the foo property ( in my example > ) to be stored in the object. I *think* you want to return JS_FALSE from your setProperty function, but unfortunately I am unable to find anything that states this [1]. -- James Ross ChatZilla Developer [1] http://www.mozilla.org/js/spidermonkey/apidoc/gen/api-JSClass.html doesn't seem to define the semantics of the various functions you specify in the structure, but JS_PropertyStub simply returns JS_TRUE, so it seems logical. .