This should work (without the need for the disabled class):
var clickEnabled = false;
$('.clickable').on('click', function(e) {
if (!clickEnabled) {
alert('disabled');
e.stopImmediatePropagation();
return false;
}
else {
alert('enabled');
}
});
... And just set clickEnabled to true once whatever you need is ready.
Fiddle: http://jsfiddle.net/ehFGX/
If all you want is for the default click handler to fire once everything is ready, you can just remove the else block above and it will continue with the default if your handler doesn't return false.
If you still prefer to use the disabled class, you can just check if $(this) has that class instead of checking !clickEnabled, too.