Originally Posted by ruadh
Code:
myFrame:SetScript("OnEvent", function(event) print(event); print(self.name); end)
|
This line should be printing something like
table:1A2B3C4D and throwing an "attempt to index nil" error if it's being run. The function definition is missing
self as the first parameter.
event is the second followed by a list of arguments specific to the event fired.