no edit summary
(→Hooking functions with ":" in there name: avoid tags for formatting) |
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 | == 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: | ||