CommandManager.removeHooks Member
Unregisters multiple hooks for commands.
Syntax
object.removeHooks(hooks, prefix);
Arguments
| Argument | Summary |
|---|---|
| hooks | An Object identical to the one passed to addHooks. |
| prefix | Optional. A String identical to the one passed to addHooks. |
Returns
Remarks
See Also
Source Code
function cmgr_remhooks (hooks, prefix)
{
if (!prefix)
prefix = "";
for (var h in hooks)
{
this.removeHook(h, prefix + ":" + h,
("before" in hooks[h]) ? hooks[h].before : false);
}
}