Instead of testing for this here and in *addEventListener*/*removeEventListener*, define it in the constructor, so it's always available.