Jquery Clear / reset .Queue() ?
- by Wes
I have the following code that triggers two functions whenever a button is clicked. However it only fires the functions once. If i click it again, it does nothing. I need to reset this queue so it fires the functions everytime I click the button.
Also, I'm only doing this so I can delay the functions from be fired 1000ms - is there another way to do this?
$('#play').click(function() {
// other code..
$(this).delay(1000).queue(function(){ countHourly(); countFlights() });
});