probably a cut/paste error. RemoveEventListenerByIID() shouldn't be implemented by calling AddEventListenerByIID() ;) r=danm/sr=ben

This commit is contained in:
pinkerton%netscape.com 2001-01-23 04:32:53 +00:00
parent cec42466c4
commit 06cbf7d7ec

View File

@ -127,7 +127,7 @@ nsWindowRoot::RemoveEventListenerByIID(nsIDOMEventListener *aListener, const nsI
nsCOMPtr<nsIEventListenerManager> manager;
GetListenerManager(getter_AddRefs(manager));
if (manager) {
manager->AddEventListenerByIID(aListener, aIID, NS_EVENT_FLAG_BUBBLE);
manager->RemoveEventListenerByIID(aListener, aIID, NS_EVENT_FLAG_BUBBLE);
return NS_OK;
}
return NS_ERROR_FAILURE;