jquery.tablesorter: Optimise getElementSortKey() code
authorTimo Tijhof <krinklemail@gmail.com>
Fri, 8 Mar 2019 16:02:44 +0000 (16:02 +0000)
committerTimo Tijhof <krinklemail@gmail.com>
Fri, 8 Mar 2019 21:11:46 +0000 (21:11 +0000)
commit833c4b4e8ad89f778a94525ce77a635bedb33015
tree330ede292eaa2f47eb73228e5e626189e1666e24
parent441711eda9b7b38bb4c17bcdd25dd75e0ac82634
jquery.tablesorter: Optimise getElementSortKey() code

* Document why this uses $().data() instead of $.data(),
  as the rest of this file does.

* Move single-use $() to where it is needed.

* Use native Image.alt directly instead of going via jQuery
  and attributes. This also obviates the need for a default,
  as the DOM handles that already.

* Remove needless $.makeArray(), use $.map() directly which
  supports the same array-like objects as $.makeArray().

* Use native elem.textContent directly for text nodes,
  instead of $(elem).text().

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