Monday, April 19, 2010

Functionally Equivalent


  // not sure if we need $(this).dequeue(), but it works alright
  $(this).before( $(""+msg+"").delay(1000).fadeOut("slow").queue(function() { $(this).remove(); $(this).dequeue(); })  );
  
  // use the built-in callback
  $(this).before( $(""+msg+"").delay(1000).fadeOut("slow", function() { $(this).remove()}) );
 

No comments:

Post a Comment