context: function cmgr_hook (commandName, func, id, before){    if (!ASSERT(commandName in this.commands,                "Unknown command '" + commandName + "'"))    {        return;    }        var command = this.commands[commandName];        if (before)    {        if (!("beforeHooks" in command))            command.beforeHooks = new Object();        command.beforeHooks[id] = func;    }    else    {        if (!("afterHooks" in command))            command.afterHooks = new Object();        command.afterHooks[id] = func;    }}
meta: 3298	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3298/703717eb72f3378c625c0fefe679e646d1c5b0ff/command-manager.js/buggy/js/lib/command-manager.js