extern "C" NS_DOM nsresult NS_NewJSEventListener(nsIDOMEventListener ** aInstancePtrResult, nsIScriptContext *aContext, void *aObj)
extern "C" NS_DOM nsresult NS_NewJSEventListener(nsIDOMEventListener ** aInstancePtrResult, nsIScriptContext *aContext, nsIScriptObjectOwner *aOwner)
extern "C" NS_DOM nsresult NS_NewJSEventListener(nsIDOMEventListener ** aInstancePtrResult, nsIScriptContext *aContext, void *aObj){  JSContext *mCX = (JSContext*)aContext->GetNativeContext();    nsJSEventListener* it = new nsJSEventListener(mCX, (JSObject*)aObj);  if (NULL == it) {    return NS_ERROR_OUT_OF_MEMORY;  }  return it->QueryInterface(kIDOMEventListenerIID, (void **) aInstancePtrResult);   }