CommandManager.removeHook Member

Unregisters a hook for a particular command.

Syntax

object.removeHook(commandName, id, before);

Arguments

ArgumentSummary
commandName The String command name to unhook.
id The String identifier for the hook.
before A Boolean indicating whether the hook was to be called before or after the command executed.

Returns

Remarks

The arguments to removeHook are the same as addHook, but without the hook function itself.

See Also

Source Code

function cmgr_unhook (commandName, id, before)
{
var command = this.commands[commandName];
if (before)
delete command.beforeHooks[id];
else
delete command.afterHooks[id];
}