Using jQuery's .one event handler to do a setup on the first click and something else on the next/subsequent clicks, is it possible to do write this more elegantly:
$('#start').one('click', function(){
alert('one');
// could also be .on for subsequent clicks
$(this).one('click', function(){
alert('two');
});
});
Update: I was hoping that there was a jQuery pattern to using .one like this self-defining function, but reading the source for .one() it's just an extension of .on()