View Single Post
12-30-14, 07:51 PM   #19
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Much better, though you shouldn't need the "if (button) then ... end" wrapper around the contents of your AuraButton_Update hook, since the default UI should never be calling update functions for buttons that don't exist. Leaving it won't really affect performance, it just adds an extra level of indentation for no particular reason. Smaller amounts are usually better when it comes to code.
__________________
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