WoW:Hooking functions: Difference between revisions

no edit summary
No edit summary
Line 116: Line 116:
Libraries may contain functions that allow you to "unhook" your method -- those operate primarily by moving the ignore switch further up the execution tree: if you want to remove your hook, it won't get called, but the library's hook function stays in place.
Libraries may contain functions that allow you to "unhook" your method -- those operate primarily by moving the ignore switch further up the execution tree: if you want to remove your hook, it won't get called, but the library's hook function stays in place.


== Hooking functions with ":" in there name ==
== Hooking functions with ":" in their name ==
You can hook a function like "AddonName:Function()" by replaceing the ":" with a ".".
You can hook a function like "AddonName:Function()" by replaceing the ":" with a ".".
For example if the below code is from someone's addon:
For example if the below code is from someone's addon:
Anonymous user