kenwheeler/cash — pull request #23 by simeydotme (2014-10-19 15:07:59+00:00)
Title: PR for parents() function

Changed the `.parents()` method to work like jQuery's.

***

Also moved the existing `parents()` function and renamed it to `closest()` ... I note that @vivekimsit already created a PR for a `closest()` method, so a bit confusing... but I think his method closesly matches jQuery's one which seems sensible.

Also did the unit tests and documentation alphabetically, and noticed that `.add()`'s unit tests where out of place, so moved them, too.

Cheers, Si. 👊