Bug 755255 - Add a convenience function to grab the JS runtime. r=mrbkap

I started getting sick of typing nsXPConnect::GetXPConnect()->GetRuntime().
This commit is contained in:
Bobby Holley 2012-06-21 16:14:48 +02:00
parent 742b686e2e
commit 61da966ca9

View File

@ -652,6 +652,7 @@ class XPCJSRuntime
{
public:
static XPCJSRuntime* newXPCJSRuntime(nsXPConnect* aXPConnect);
static XPCJSRuntime* Get() { return nsXPConnect::GetXPConnect()->GetRuntime(); }
JSRuntime* GetJSRuntime() const {return mJSRuntime;}
nsXPConnect* GetXPConnect() const {return mXPConnect;}