[Project_owners] Re: Test for copyImage in Components.interfaces.nsIContentViewerEdit

Neil neil at parkwaycc.co.uk
Mon May 9 13:06:50 EDT 2005


Michael Vincent van Rantwijk wrote:

> nsIContentViewerEdit.idl
> (see also: 
> http://lxr.mozilla.org/seamonkey/source/docshell/base/nsIContentViewerEdit.idl) 
>
> was recently (2005-03-11 03:12) modified for Mozilla bug 135300
> (see also: https://bugzilla.mozilla.org/show_bug.cgi?id=135300)
> and I would like to use some test to see if method copyImage()
> (or is that a function?) is available, this for backward compatibility 
> with older
> Mozilla builds, so how does that work? Can I use something like:
>
> if ('copyImage' in Components.interfaces.nsIContentViewerEdit)

I don't think you can do that with functions, but you can do that with 
constants i.e.
if ('COPY_IMAGE_ALL' in Components.interfaces.nsIContentViewerEdit)


More information about the Project_owners mailing list