This would be a cool utility to have built in the mozilla tree.

pete collins wrote:

> > Thanks pete. There's an easier way to do anything :)
> >
> > function findError(code) {
> >   for(var name in Components.results)
> >     if(Components.results[name] == code)
> >         return code + " is " + name;
> >   return code + " not found"
> > }
>
> Thanks Jband.
>
> I am getting verbose in my old age. ;-)
> I hate writing fat inefficient code!
>
> --pete


Reply via email to