Originally Posted by galvin
Code:
function(Event, ...)
|
The frame always sends itself as the first argument, followed by the event and the rest of the parameters. Everything else looks fine.
PS: You shouldn't run
select(1,...) ever. You're telling it to return the list of arguments as-is starting from position 1 (the beginning). This accomplishes nothing and wastes CPU on a global lookup and a function call. The following code does exactly the same without any of the overhead.