Comments: JavaScript components should avoid nsIPropertyBag like the plague

You can still use nsIPropertyBag, but just remember that xpconnect maps x->GetProperty(foo) to x[foo].

Posted by Neil Rashbrook at January 7, 2009 1:27 AM

Doesn't the XPConnect interface just expose all your JS object's properties via the property bag?

That said, not forwarding to the "real" property bag sounds like a bug to me. Filed?

Posted by Boris at January 7, 2009 11:43 AM
Post a comment









Remember personal info?