Sean Graham wrote:
> Sorry if I missed the boat, but is nsSample.js broken?  I copied 
> sample.xpt and nsSample.js into my Components directory (running nightly 
> build 2002021708), and I deleted both components.reg and 
> components\xpti.dat.
> 
> When I start mozilla, I get:
> 
> Error: compMgr.registerComponentWithType is not a function
> Source File: file:///C:/Internet/Mozilla/components/nsSample.js
> Line: 72
> 
> on the JS console.  I was getting the same error with a component I am 
> implementing myself, and figured it was "just me", but my confidence in 
> my inadequacy diminished when I saw the sample component fail the same 
> way...
> 
> Has something changed in the way XPCOM interfaces are implemented using 
> JavaScript, and if so, can someone point me at a reference or a new sample?
> 
> Thanks
> sean
> 

I recently changed registration in xpcom.  See a post from me regarding 
Component Registration some time at the end of January:

[EMAIL PROTECTED]">news://news.mozilla.org:119/[EMAIL PROTECTED]

What version of nsSample.js do you have?  The current version does have 
the proper method call.  See:

http://lxr.mozilla.org/seamonkey/source/xpcom/sample/nsSample.js#68

Let me know if this helps,

--
Doug Turner
[EMAIL PROTECTED]


Reply via email to