Thank you for the help Garkin, looking at miniMap helped.
I was just making a stupid mistake and didn't realize it. I wasn't calling the creator(..) in the correct spot. I was doing this:
Lua Code:
tCreator.creator(mapPinData)
...
rowControl:SetHandler("OnMouseEnter", function(...)
...
InitializeTooltip(tooltip, rowControl, BOTTOMLEFT, 20, 0, TOPRIGHT)
...
end)
Instead of doing it inside the SetHandler:
Lua Code:
rowControl:SetHandler("OnMouseEnter", function(...)
...
InitializeTooltip(tooltip, rowControl, BOTTOMLEFT, 20, 0, TOPRIGHT)
...
tCreator.creator(mapPinData)
end)