View Single Post
03-26-13, 11:02 PM   #2
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
That error means that you wrote the wrong function name in your RegisterEvent call, or have a scoping issue. To avoid scoping issues, I usually define all my function names first, and then the functions:

Code:
local Visibility, Update, Path, ForceUpdate, Enable, Disable

function Visibility(self, event)
    -- stuff
end

function Update(self, event)
    -- stuff
end

-- etc
__________________
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