References:
In-Reply-To:
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Message-ID:
Lines: 18
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 69.116.74.213
X-AuthenticatedUsername: NoAuthUser
X-Trace: sv3-RQlwZ8mZL+u+SU4gIMRjuAV8TAIX33Pz8TCnpK/vz03Oqg39YTudnEkHNP8lJ2ETzGvafmd3oyC+u9t!ErbKXaxRD 9U4zu9qi7nOLOkQxHNqcoUg7ne0IbBZTwuKC7OorN79FMnOgp5 KyvQLIK7HCRvLqVlg!CQqVkn/1tYu1
X-Complaints-To: abuse@mozilla.org
X-DMCA-Complaints-To: abuse@mozilla.org
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.39
Bytes: 1916
X-Original-Bytes: 1873
Xref: number.nntp.dca.giganews.com mozilla.dev.extensions:10698

Thanks John.
I decided to follow your suggestions and use wrappedJSObject.
--
Subrata

John J. Barton wrote:
> Subrata Mazumdar wrote:
>> Hi,
>> I have a set of complex Javascript objects with inheritance and deep
>> nesting.
>> I would like to provide XPCOM IDL based interface for top-level objects.
>> How do I define type for Javascript object in XPCOM IDL? Are there
>> any examples?

>
> Will the objects be used by Javascript? Then don't bother, use the
> wrappedJSObject trick.
>
> jjb