r888888888/danbooru — pull request #1937 by xiaody (2013-08-14 17:20:48+00:00)
Title: Safer $.fn.selectEnd

When `this.length` is 0, `this.val().length` will become `undefined.length` and cause a TypeError.