It might be a good idea to use jQuery or a similar framework to manage all event handlers.
This will give you easy-to-use, unobtrusive functions to add and remove event handlers:
$(...).on('click', function() { ... });
$(...).off('click');
// or, to unbind all events:
$(...).off();
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…