When a field is focused or blurred, a jQuery Ajax request fires. I don’t want the Ajax request to fire if there’s already a request being called. Here’s what I have:
$('#domain').bind('change focus blur', function() {
// Disable the "bind" here
$.getJSON(theURL, '', function(data) {
...
});
// Re-enable the "bind" here
});
How about
unbind?