Bug 742376 - DisableDevice is being called with types that are not known device sensors - follow up. Logic got reversed. r=smaug

This commit is contained in:
Doug Turner 2012-06-04 09:19:15 -07:00
parent eccd031e3f
commit 4084c1eccd

View File

@ -404,7 +404,7 @@ nsEventListenerManager::RemoveEventListener(nsIDOMEventListener *aListener,
mNoListenerForEvent = NS_EVENT_TYPE_NULL;
mNoListenerForEventAtom = nsnull;
if (deviceType) {
if (!deviceType) {
return;
}
--typeCount;