WoWInterface - View Single Post - Totem Tag - help needed
View Single Post
12-16-13, 01:00 AM   #12
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Originally Posted by Pyrates View Post
... is there a reason ouf does not print an error message along the lines of "Dude, your tag's fontstring is nil"?
local Tag = function(self, fs, tagstr)
	if(not fs or not tagstr) then return end
As to why it was written that way, I don't know, but it is in line with other oUF element constructors -- none of them will throw an error if you call them for an object that doesn't exist; they'll just silently do nothing.
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Donít message me about addon bugs or programming questions.
  Reply With Quote