mediawiki.util: Drop updateTooltipAccessKeys(), deprecated since 1.24
authorJames D. Forrester <jforrester@wikimedia.org>
Fri, 4 May 2018 18:37:46 +0000 (11:37 -0700)
committerJames D. Forrester <jforrester@wikimedia.org>
Mon, 7 May 2018 19:32:39 +0000 (12:32 -0700)
Bug: T193901
Change-Id: I72d82b8c3a073c4ecde24f88bb5a2027327adb0c

RELEASE-NOTES-1.32
resources/src/mediawiki/mediawiki.util.js

index 5c1adcb..d2b7d0d 100644 (file)
@@ -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 ===
index 6a88bd6..1db8904 100644 (file)
                }
        };
 
-       /**
-        * 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.