How to wait for the elements' animation queues to get empty with .join()?

Compact syntax with timing methods:

1 $('.some').join(true).doSome().jQueryStuff();

The join() method also provides a parameter for selecting the queue.

Compare this to the old way with more syntactic fluff:

1 $('.some').promise().then(function(){
2   $('.some').doSome().jQueryStuff();
3 });

Similar patterns with animations

Similar patterns with promises