0

I'm using YUI 2 carousel. I want to override the "keydown" event listener with my own event listener. If I give:

node.on('keydown', function(e){ alert("something"); });

at first the default event listener defined in carousel-min.js is executed and then my listener is executed. Is there any way to override this default execution completely in yui carousel?

4

1 回答 1

0

用于preventDefault覆盖默认行为:

function(e){ e.preventDefault(); alert("something"); });
于 2012-09-14T15:54:45.697 回答