In wikibits many global functions marked as deprecated,
does this also in mediawiki.action.edit.
Change-Id: I64fcb41bc7812ac1aebc75f4f866b4b07fb7dc8e
** The rc_type field of recentchanges will be deprecated in a future point
release.
* The global variable $wgArticle has been removed after a lengthy deprecation.
+* The global functions addButton and insertTags (for mw.toolbar.addButton and
+ mw.toolbar.insertTags) now emits mw.log.warn when accessed.
== Compatibility ==
};
// Legacy (for compatibility with the code previously in skins/common.edit.js)
- window.addButton = toolbar.addButton;
- window.insertTags = toolbar.insertTags;
+ mw.log.deprecate( window, 'addButton', toolbar.addButton, 'Use mw.toolbar.addButton instead' );
+ mw.log.deprecate( window, 'insertTags', toolbar.insertTags, 'Use mw.toolbar.insertTags instead' );
// Explose API publicly
mw.toolbar = toolbar;