I'd also probably recommend HookScript over SetScript.
Setting OnEvent script to nil is also redundant if you're unregistering all events from the frame anyway (and depending on the frame, could just taint.)
Last edited by Ammako : 02-05-18 at 02:05 PM.
|