The object mw.page is only used in watch.js and it is not intended to extend
this object by other modules because with module.exports exists a more
flexible way.
This change avoids the dependency on module 'mediawiki.page.startup'.
Change-Id: Ib717261c20856d048c67e2196e9dc619b72ab1db
'mediawiki.page.watch.ajax' => [
'scripts' => 'resources/src/mediawiki/page/watch.js',
'dependencies' => [
- 'mediawiki.page.startup',
'mediawiki.api.watch',
'mediawiki.notify',
'mediawiki.util',
( function ( mw, $ ) {
- mw.page = {};
-
$( function () {
var $diff;
}
// Expose public methods
- mw.page.watch = {
- updateWatchLink: updateWatchLink
+ mw.page = {
+ watch: {
+ updateWatchLink: updateWatchLink
+ }
};
$( function () {