Re: this.__proto__ = Ci[].createInstance and QueryInterface calling problem
mcben <[email protected]> Wed, 6 Feb 2008 02:37:39 -0800 (PST)
| Newsgroups | gmane.comp.mozilla.devel.rdf |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <9b818742-c7c7-4eb6-885f-6794ae5aa3db__6541.1846772351$1202294454$gmane$org@v17g2000hsa.googlegroups.com> |
On 4 f=E9v, 18:53, Axel Hecht <[email protected]> wrote: > Asking js-engine for some xpconnect help. > > I left all the context in, I guess it's best to read from the bottom up > for those in js-engine. > Anybody there that could help me ? :( In fact, i never thought that i could set a xpcom instance as a prototype of a js object. But according to this thread : http://groups.google.fr/group/mozilla.dev.tech.xpcom/browse_thread/thread/b= 44471fb71569447/e3146a7288feec1d?lnk=3Dgst&q=3Dinheritance#e3146a7288feec1d And both last replies of Boris Zbarsky and Honza T_, it should works ! Quote : "Just create an instance and set it as your prototype in your constructor function.... " So how can i properly set it as my prototype in my constructor, and then adds new methods and implements new interfaces ?