Originally Posted by Morant
In trying to reason things out for myself I first come to the notion it is the IDnumber assingned to the "Frame" upon its creation. I am fairly sure that is not quite right as I only created a single frame.
|
As far as I know, that's right. Each frame is basically a table (with a metatable for frame-function in the back, but that's a different story) with an unique ID. /reloadui's create the frames anew and so they get other ID's.
It's basically impossible that your short code introduces this behaviour (especially with the two different table-ID's) and that your "alerts == 1" is ignored in some case - there seems to interfere something in it.
So, could you please post your whole code? Including the aura-tables, including the debug-output and other function your addon maybe has?
P.S.: Just a thought - is your 'alerts'-variable local? Because if it's not, maybe something else modifies it ...