Hook scope hiding into event listener