*aInstancePtrResult = it; NS_ADDREF(*aInstancePtrResult);
NS_ADDREF(*aReturn = it);
NS_NewJSEventListener(nsIDOMEventListener ** aInstancePtrResult,                      nsIScriptContext *aContext, nsISupports *aObject){  nsJSEventListener* it = new nsJSEventListener(aContext, aObject);  if (!it) {    return NS_ERROR_OUT_OF_MEMORY;  }  *aInstancePtrResult = it;  NS_ADDREF(*aInstancePtrResult);  return NS_OK;}