In the excellent book JavaScript Patterns by Stoyan Stefanov he gives the following example as a one-off callback:
document.addEventListener("click", console.log, false);
In Chrome this throws an Uncaught TypeError: Illegal invocation
In Firefox it throws TypeError: 'log' called on an object that does not implement interface Console.
In Safari it throws a generic TypeError: Type error
. I'm not sure why. Any thoughts?