Subj : Re: JSPropertyOp To : netscape.public.mozilla.jseng From : Jochen Stier Date : Mon Aug 30 2004 11:40 am I just answered my own question. Simply changing the addProperty and delProperty fields of the JSClass structure after initializaton does the trick.... J "Jochen Stier" wrote in message news:cgvnik$flr1@ripley.netscape.com... > Hi everyone, > > > I am creating a class with the addProperty stub in the JSClass structure set > to my own function. When I call > JS_InitClass with a non-empty JSPropertySpec structure then the addProperty > stub is called for each > property in this structure. This is not quite what I am looking for. What I > really want, is only to detect when > the user adds a property from within the script. I therefore would like to > assign a function to the addProperty stub > after the class has been initialized. Is there a way to do that ? > > > Thx > Jochen > > .