I've gotten this idea in my head that i shouldn't use a libraries variable, if the variable name begins with '_', as it is standard to write private variables that way.
But now i'm thinking i'm taking that too literally. If my choices are to use "_var" that points to a HTML element or add a unique attribute to said element, so that i can query the DOM to find it, should i just use the variable?
Do other people avoid private variables and if so, would you say this is too much effort?