X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=resources%2Fsrc%2Fmediawiki%2Fpage%2Fwatch.js;h=5b55bb2d7246c84f3920afb4d6ebf872fe775fb1;hp=e56e80789932b2024441c660ed22ae0098f28851;hb=5c34da77f9321fae9b43454b7e1296e3f1c248ac;hpb=d19826aa35b206847a568a4b2c1c9ffaa615fca5 diff --git a/resources/src/mediawiki/page/watch.js b/resources/src/mediawiki/page/watch.js index e56e807899..5b55bb2d72 100644 --- a/resources/src/mediawiki/page/watch.js +++ b/resources/src/mediawiki/page/watch.js @@ -2,7 +2,17 @@ * Animate watch/unwatch links to use asynchronous API requests to * watch pages, rather than navigating to a different URI. * - * @class mw.page.watch.ajax + * Usage: + * + * var watch = require( 'mediawiki.page.watch.ajax' ); + * watch.updateWatchLink( + * $node, + * 'watch', + * 'loading' + * ); + * + * @class mw.plugin.page.watch.ajax + * @singleton */ ( function ( mw, $ ) { var watch, @@ -102,13 +112,6 @@ }; module.exports = watch; - // Deprecated since 1.30 - mw.log.deprecate( mw, 'page', - { watch: watch }, - 'Use require( \'mediawiki.page.watch.ajax\' ) instead.', - 'mw.page' - ); - $( function () { var $links = $( '.mw-watchlink a[data-mw="interface"], a.mw-watchlink[data-mw="interface"]' ); if ( !$links.length ) {