jquery.accessKeyLabel: Optimise by using mw.message().plain()
authorTimo Tijhof <krinklemail@gmail.com>
Tue, 21 Aug 2018 04:45:43 +0000 (05:45 +0100)
committerKrinkle <krinklemail@gmail.com>
Tue, 21 Aug 2018 17:04:46 +0000 (17:04 +0000)
commit504707af186e3b8d286a8455845d56f6f7362e24
tree6db34130c9f11a02a276b1ad4ae3c09f27805de1
parent5410cfccce9b0b84bc909506c9b66d3f27d6dba7
jquery.accessKeyLabel: Optimise by using mw.message().plain()

Avoids invoking mw.message#text, which uses the parser() of jqueryMsg,
twice for each call to jquery.accessKeyLabel.

These two messages do not contain any wikitext features, and are
not expected to need them in the future.

To make this explicit, add `{{format|plain}}` to their documentation,
and change the code to use plain().

Bug: T202357
Change-Id: I642f09afda4a93a1208550d44072f0909dcabdd0
languages/i18n/qqq.json
resources/src/jquery/jquery.accessKeyLabel.js