Know if there is a Listener already going on? ...
Hello
Anybody could help me, I dont know how to ask if there's a Listener Running, I need to add an EventListener but I'd like to ask first if that listener is already running..
Thanks
Hello
Anybody could help me, I dont know how to ask if there's a Listener Running, I need to add an EventListener but I'd like to ask first if that listener is already running..
Thanks
There is hasEventListener(), that will tell you if the listener exists already. But you don't have to use it most times, because if you remove a listener that isn't there, there is no error, and if you add a listner a second time, it doesn't do any harm.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.