Thread Tools Display Modes
Prev Previous Post   Next Post Next
01-19-15, 07:25 PM   #21
AnrDaemon
A Chromatic Dragonspawn
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 156
Originally Posted by Phanx View Post
Oh, you're right, I wasn't looking at that part. That line should probably be changed to:

Code:
		if func and f[event] and f[event][func] ~= nil then
Yup. I did exactly that, when implementing your suggestion.
I've also dropped a check for "func = handler[func]" as redundant and not really adding to the performance.
So far, so good. Though, I should admit, that looking at someone else's code when writing your own tend to cause more harm than good
Mistyped variable names make it quite hard to debug issues. Especially when they do not cause outright errors.
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Little help fixing too flashy garrison frames


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off