Есть функция
this.showWarning = function(warning){
$(self.mysignWindow).stop(true,false).animate({height:370},300);
$('h1').stop(true,false).stop(true,false).animate({bottom:430},300);
$(".line2").before("<p class='warning'>"+warning+"</p>");
var time = setTimeout(function(){
$(self.mysignWindow).stop(true,false).animate({height:320},300);
$('h1').stop(true,false).animate({bottom:370},300);
$(".warning").remove();
console.log("ddfs");
},3000);
}
когда я много раз кликаю на button она вызывается много раз как сделать так , чтобы она не вызывалась пока предыдущая не закончила свою роботу?
var time
у вас бесполезен абсолютно. – zb' 22 мая '14 в 11:57