removes anonymous callbacks in view