From 90cfdce4e728fab3a8f5fe20a5c13ac392ef6667 Mon Sep 17 00:00:00 2001 From: "James D. Forrester" Date: Fri, 4 May 2018 11:37:46 -0700 Subject: [PATCH] mediawiki.util: Drop updateTooltipAccessKeys(), deprecated since 1.24 Bug: T193901 Change-Id: I72d82b8c3a073c4ecde24f88bb5a2027327adb0c --- RELEASE-NOTES-1.32 | 2 ++ resources/src/mediawiki/mediawiki.util.js | 20 -------------------- 2 files changed, 2 insertions(+), 20 deletions(-) diff --git a/RELEASE-NOTES-1.32 b/RELEASE-NOTES-1.32 index 5c1adcb510..d2b7d0d58a 100644 --- a/RELEASE-NOTES-1.32 +++ b/RELEASE-NOTES-1.32 @@ -73,6 +73,8 @@ because of Phabricator reports. mw.msg() or mw.message() instead. * mw.util.escapeId(), deprecated in 1.30, was removed. Use mw.util.escapeIdForAttribute or mw.util.escapeIdForLink instead. +* mw.util.updateTooltipAccessKeys(), deprecated in 1.24, was removed. Use + jquery.accessKeyLabel instead. * The SqlDataUpdate class, deprecated in 1.28, has been removed. === Deprecations in 1.32 === diff --git a/resources/src/mediawiki/mediawiki.util.js b/resources/src/mediawiki/mediawiki.util.js index 6a88bd6744..1db890419c 100644 --- a/resources/src/mediawiki/mediawiki.util.js +++ b/resources/src/mediawiki/mediawiki.util.js @@ -533,26 +533,6 @@ } }; - /** - * Add the appropriate prefix to the accesskey shown in the tooltip. - * - * If the `$nodes` parameter is given, only those nodes are updated; - * otherwise we update all elements with accesskeys on the page. - * - * @method updateTooltipAccessKeys - * @param {Array|jQuery} [$nodes] A jQuery object, or array of nodes to update. - * @deprecated since 1.24 Use the module jquery.accessKeyLabel instead. - */ - mw.log.deprecate( util, 'updateTooltipAccessKeys', function ( $nodes ) { - if ( !$nodes ) { - $nodes = $( '[accesskey]' ); - } else if ( !( $nodes instanceof $ ) ) { - $nodes = $( $nodes ); - } - - $nodes.updateTooltipAccessKeys(); - }, 'Use jquery.accessKeyLabel instead.', 'mw.util.updateTooltipAccessKeys' ); - /** * Add a little box at the top of the screen to inform the user of * something, replacing any previous message. -- 2.20.1