jquery.tablesorter: Remove dead node check in getElementSortKey()
authorTimo Tijhof <krinklemail@gmail.com>
Fri, 8 Mar 2019 15:30:27 +0000 (15:30 +0000)
committerBartosz Dziewoński <matma.rex@gmail.com>
Fri, 8 Mar 2019 20:38:47 +0000 (20:38 +0000)
commit441711eda9b7b38bb4c17bcdd25dd75e0ac82634
tree9b26cb751310f119b02eec06b2b2d711a74e9a99
parentb3b2a72e718cd8c18af9dbb7b1ab80e90dbd79cf
jquery.tablesorter: Remove dead node check in getElementSortKey()

In 2012, commit 39d1f3967be9d added special handling image elements,
and for Cite references. This inadvertently broke handling of sorting
for tables with colspanned cells, which have node = undefined in the
cache.

In 2013, commit e203fdfc74f18 restored handling of node = undefined.

In 2015, commit 7a5f4e46d10ea made colspan expanded in the cache
just as rowspan was already. Thus making this code dead.

It's odd to see $(node) before this check, and even a call within
this conditional. This worked, as long way to return ''.

Change-Id: Ia823a3ec29371be39fab3d626ed8647ee469951b
resources/src/jquery.tablesorter/jquery.tablesorter.js