View Single Post
04/01/14, 05:41 PM   #7
skyraker
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 154
Originally Posted by Seerah View Post
So your OnUpdate handler is set in the main chunk of the addon? Not during or after the EVENT_ADD_ON_LOADED event?
Is the add-on loaded event supposed to be after everything now? But that would not explain why it worked before my changes. Maybe my changes were the problem?

What I did:
  • Moved both the top-level window definition and the toolText definition from outside any function to inside a function.
  • Changed top-level window and toolText to be members of the addon's global table MS.
  • Added call to this new function from my initialization function.

The funny thing is that the add on still works after you clear the errors out. Typically something that give an error about getting nil when it expects something else indicates something is broken and the add on doesn't work.
  Reply With Quote