Subj : Re: Namespaces To : netscape.public.mozilla.jseng From : Berserker Date : Wed Oct 12 2005 11:56 am > Sounds like a bug. Are you able to run a debugger and try to see what is > going on? Or just add print statements to your code to see what runs? > Post your code if you are willing (don't mail me alone, I won't have time > to look at it before someone here who might help faster). Hopefully is not a bug :) The "problem" is in JS_DefineObject: when the page class is initialized under the global object the prototipe of the class is automatically recognized ("If you set proto to NULL, JS sets the prototype object for you"), but if the class is registered under the "web" object I have to pass the right prototipe to that function... Thanks for your help! Bye .