CEventPump.getHook Member

Finds and returns data about a named event hook.

Syntax

object.getHook(name, hooks);

Arguments

ArgumentSummary
name The unique hook name to find and return data about.
hooks Internal. Do not use.

Returns

If a match is found, an Object with properties matching the arguments to addHook is returned. Otherwise, null is returned.

Remarks

You can use getHook to change the enabled state of an existing event hook:
  client.eventPump.getHook(myHookName).enabled = false;   client.eventPump.getHook(myHookName).enabled = true;

See Also

Source Code

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