WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   General Authoring Discussion (https://www.wowinterface.com/forums/forumdisplay.php?f=20)
-   -   SecureHandlerUnwrapScript (https://www.wowinterface.com/forums/showthread.php?t=59668)

scottingram 09-06-23 07:47 PM

SecureHandlerUnwrapScript
 
I have a frame and I do a few different
SecureHandlerWrapScript(self, "OnClick", ... )
based on a user's config choices.

When a user changes their config, I may need to remove one of those WrappedScripts and replace it with some SetAttribute() behaviors.

QUESTIONS: (1) does Bliz provide a way to reference a specific WrappedScript, and (2) if not how would you remove the script if you needed to?

Right now, I cry, and loopingly SecureHandlerUnwrapScript(self, "OnClick") until I find the one, then restore the others I had needlessly stripped while groping the Frame in a blind, hamfisted search. Am I overlooking something?


All times are GMT -6. The time now is 03:41 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI