You're already doing that loop in `_removeAllEvents`. No need to have it here. The `removeEvent` function should just remove the events (in `names`) for the given element.