[jQuery] clearQueue - Data

var _s = $('#rect0');

function run(){
  _s.show('slow').animate({left:'+=200'},2000).animate({left:'-=200'},2000).hide('slow',run);
}

$('#btn0').click(function(){
  run();
});

$('#btn1').click(function(){
  _s.clearQueue();
});

.clearQueue( queueName:string )
キューに格納されている実行されていない関数を消去する。

start

stop