Thread Tools Display Modes
10-09-09, 04:18 AM   #1
v6o
An Onyxian Warder
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 399
Disabling or removing SetScript, OnUpdate

I'm sure I read it somewhere but I am unable to find it.
What I remember it was frame:SetScript("OnUpdate", nil),
is that correct?
__________________
I stopped playing back World of Warcraft in 2010 and I have no plans on returning.
This is a dead account and if you want to continue any of my addons or make a fork then feel free to do so.
This is your permission slip.

If you need to contact me, do so on Twitter @v6ooo

Best regards, v6.
  Reply With Quote
10-09-09, 05:02 AM   #2
ravagernl
Proceritate Corporis
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 1,176
That would be the correct way to remove an OnUpdate.
Hiding the frame with an OnUpdate handler will temporarily disable updating.

Originally Posted by wowwiki
The OnUpdate handler is called right before each frame is painted (i.e. between the processing of events and user actions, but before the UI elements are drawn onto the screen). It is invoked for every visible frame that declares an OnUpdate handler.

Last edited by ravagernl : 10-09-09 at 05:07 AM.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Disabling or removing SetScript, OnUpdate


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