CEventPump.removeHookByName Member

Removes an existing event hook by its name.

Syntax

object.removeHookByName(name, hooks);

Arguments

ArgumentSummary
name The unique hook name to find and remove.
hooks Internal. Do not use.

Returns

true if the hook was found and removed, false otherwise.

Remarks

See Also

Source Code

function ep_remhookname(name, hooks)
{
if (typeof hooks == "undefined")
hooks = this.hooks;
for (var h in hooks)
if (hooks[h].name.toLowerCase() == name.toLowerCase())
{
arrayRemoveAt (hooks, h);
return true;
}
return false;
}