jquery.suggestions: Remove dead code for returning options
authorTimo Tijhof <krinklemail@gmail.com>
Fri, 17 Aug 2018 17:50:36 +0000 (18:50 +0100)
committerTimo Tijhof <krinklemail@gmail.com>
Fri, 17 Aug 2018 17:50:36 +0000 (18:50 +0100)
commit5415de59ae175f6e2282d8494350f0171d772703
tree1c5194d4f046c7d92fdfe6fa94380fb678445042
parent38a0733fef96fd2f837144293b902d2e0353c955
jquery.suggestions: Remove dead code for returning options

    returnValue = (key in obj) ? undefined : obj[key];

By standard, this cannot return anything other undefined.
This code has been broken since the introduction of the module
in 2012 (32377424b, r72349).

The functionality also didn't have test (naturally), and isn't
used anywhere in Wikimedia Git. Simply remove it.

Also remove the confusing $() wrapping of the non-getter return
value that provides chainability.

The 'this' inside a jQuery method is already an instance of jQuery,
pulling it through $() again achieves very little.

Change-Id: Id13861d42b65a759d74670d8c5850aecee4daf7d
resources/src/jquery/jquery.suggestions.js