RE: Ultra-Chaining with jQuery

RE: Ultra-Chaining with jQuery


Sorry Guys but I could not find the thread mentioned on John's
website: http://ejohn.org/blog/ultra-chaining-with-jquery/
Anyway, the chaining system looks ok but rather than using a chain()
metod how about using a wait() method that would block or process
succeeding calls after the preceding call has been completed:
jQuery("div").hide("slow")
.wait()
.addClass("done")
.find("span")
.addClass("done")
.end()
.show("slow")
.wait()
.removeClass("done")
Just my 2cents