nsJSDOMEventListener* it = new nsJSDOMEventListener(mCX, (JSObject*)aObj, (JSFunction*)aFun);
nsJSDOMEventListener* it = new nsJSDOMEventListener(mCX, (JSObject*)aScopeObj, (JSObject*)aFunObj);
extern "C" NS_DOM nsresult NS_NewScriptEventListener(nsIDOMEventListener ** aInstancePtrResult, nsIScriptContext *aContext, void* aObj, void *aFun){  JSContext *mCX = (JSContext*)aContext->GetNativeContext();    nsJSDOMEventListener* it = new nsJSDOMEventListener(mCX, (JSObject*)aObj, (JSFunction*)aFun);  if (NULL == it) {    return NS_ERROR_OUT_OF_MEMORY;  }  return it->QueryInterface(kIDOMEventListenerIID, (void **) aInstancePtrResult);   }