m
Move page script moved page API hooksecurefunc to WoW:API hooksecurefunc without leaving a redirect
m (→Notes: No reason to prefix code with ">". Also, added note about :HookScript() being better than this function when you want to hook a frame's script handler.) |
m (Move page script moved page API hooksecurefunc to WoW:API hooksecurefunc without leaving a redirect) |
||
| (One intermediate revision by one other user not shown) | |||
| Line 43: | Line 43: | ||
Also note that using hooksecurefunc() may not always produce the expected result. Keep in mind that it actually replaces the original function with a new one (the function reference changes). | Also note that using hooksecurefunc() may not always produce the expected result. Keep in mind that it actually replaces the original function with a new one (the function reference changes). | ||
For | For example, if you try to hook the global function "MacroFrame_OnHide" (after the macro frame has been displayed), your function will not be called when the macro frame is closed. | ||
It's simply because in Blizzard_MacroUI.xml the OnHide function call is registered like this: | It's simply because in Blizzard_MacroUI.xml the OnHide function call is registered like this: | ||