About add-ons optimization
View Single Post
01-16-18, 06:04 AM
A Rage Talon Dragon Guard
Join Date: Sep 2012
Originally Posted by
What do you mean by pre-hooking? Of course if your hook is wrong it's not gonna work. Or if a hook does not actually hook than don't call it a hook.
-- your stuff here
People either do this thingy or replace Blizz function entirely to prevent it from doing something, quite common for bag addons.
In this case, if you create an upvalue for a function before some other addon redefines it, you'll be calling original function.
It's not a proper hook, that's why I wrote it in quotes.
Last edited by lightspark : 01-16-18 at
View Public Profile
Send a private message to lightspark
Find More Posts by lightspark