DEV Community

Discussion on: Scanning user input and looking for keywords

 
devdrake0 profile image
Si

So I'm pretty sure your issue is that your registering event handlers, but you're never de-registering them.

On the first page:

getEventListeners(document)
{keyup: Array(1)}

When I move onto the next section:

getEventListeners(document)
{keyup: Array(2)}

etc etc.

I believe this is why you're having problems.