MatthewMueller/cheerio — pull request #241 by absentTelegraph (2013-07-12 18:23:23+00:00)
Title: Fixing next, nextAll, prev, and prevAll to return empty objects rather than error.

If you call next, and other functions, on an empty cheerio object it will error. This adds checks first thing in these functions to look for this case and return an empty object instead. Much like parent/children functions.