Prevent multiple events from being fired.