Subj : Re: [HELP] Not understanding GetProperty/DefineObject... To : netscape.public.mozilla.jseng From : Brendan Eich Date : Wed Oct 08 2003 10:46 am Brendan Eich wrote: > You don't need to do that. Just leave the ids you don't understand > alone, do nothing for them. But if that still runs too much code in > your class getProperty hook, e.g., you can avoid that hook being called > for that property by defining only-for-that-id getter and setter, with > JS_DefineProperty. For a do-nothing getter and setter, pass JS_GetPropertyStub and JS_SetPropertyStub to JS_DefineProperty. Again, passing NULL means "use the object's class getProperty and setProperty hooks." /be .