Maintenance::countDown()
* The OutputPage class constructor now requires a context parameter,
(instantiating without context was deprecated in 1.18)
+* mw.page (deprecated in 1.30) was removed.
== Compatibility ==
MediaWiki 1.31 requires PHP 5.5.9 or later. There is experimental support for
'mediawiki.page.watch.ajax' => [
'scripts' => 'resources/src/mediawiki/page/watch.js',
'dependencies' => [
- 'mediawiki.page.startup',
'mediawiki.api.watch',
'mediawiki.notify',
'mediawiki.util',
* 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,
};
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 ) {