walkEvents that is used in detachEvents and attachEvents, remove, tests