I'm running into an issue where i'm using a mendix layout with a HTMLSnippet containing javascript only.
This javascript is looking to find certain classes within my DOM for styling purposes. For this i use dojo.query.
The whole snippet is triggered with domReady!
When triggered the first time, this snippet works fine.
Once i switch between pages. I also get DOM elements found by the query method from the previous page. Where they aren't anywhere to be found in my current page.
Does anyone know how i can prevent this from happening in a snippet?