Add missing param annotations for detachEvent