View Single Post
08-27-20, 04:00 PM   #3
Banthur
A Defias Bandit
Join Date: Jun 2009
Posts: 2
Originally Posted by Fizzlemizz View Post
Try:
Code:
PVPMatchResults.Onevent = onevents
and don't use:
Code:
PVPMatchResults:SetScript("OnEvent", onevents);
What's the difference between the assignment and SetScript? Is there one?

I tested the assignment method today and that seems to produce the effect I wanted. I also noticed something yesterday -- the code I had originally (SetScript) *was* working; it just wasn't working in my test harness.

I was using a macro
Code:
PVPMatchResults:OnEvent("PVP_MATCH_COMPLETE")
to test the response of the elements to the event. Using this however seems to always trigger the original function on the frame, I'm not sure why.
  Reply With Quote