You can't. Define your function beforehand:
function eventHandler(event) {}
and assign it separately:
$('canvas').mouseout(eventHandler);
$('body').bind('blur contextmenu', eventHandler);
With .bind
you can at least bind one event handler to multiple events.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…