Can anyone explain to me why this:

function banana() {
        alert('banana function called');
}

$('tr').hover(
        function() {
                banana();
        },
        function() {
                banana();
        }
);


…works, but this…

function banana() {
        alert('banana function called');
}

$('tr').hover(banana(), banana());


…does not?

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

UPHPU mailing list
[email protected]
http://uphpu.org/mailman/listinfo/uphpu
IRC: #uphpu on irc.freenode.net

Reply via email to