jQuery one() with multiple event types
by goulvench
JavaScript
$(function() {
$(document).one('click keydown', function(e){
alert(e.type);
});
$(document).click(); // This should alert 'click'
$(document).keydown(); // No alert should show up this time, right?
});