Oct 19, 2021
Very good point Marcin, thanks. In some forums i saw that people were asking for a example when code is enclosed in an EventListener class, that's why i wrote it this way. But you are absolutely right, it's not mandatory on this situation.