wikibits: Wrap jsMsg in mw.log.deprecate
No release notes since it was already deprecated (in 1.17 to mw.util.jsMessage and in 1.20 to mediawiki.notify, though we don't fallback to that directly since it is not compatible). Change-Id: I359c94929e58363d5b38f410a60b456111bb0897
This commit is contained in:
parent
08a4265133
commit
ec69391a4f
2 changed files with 3 additions and 5 deletions
|
|
@ -460,7 +460,7 @@
|
|||
*
|
||||
* @param {Mixed} message The DOM-element, jQuery object or HTML-string to be put inside the message box.
|
||||
* to allow CSS/JS to hide different boxes. null = no class used.
|
||||
* @deprecated Use mw#notify
|
||||
* @deprecated since 1.20 Use mw#notify
|
||||
*/
|
||||
jsMessage: function ( message ) {
|
||||
if ( !arguments.length || message === '' || message === null ) {
|
||||
|
|
|
|||
|
|
@ -396,11 +396,9 @@ window.redirectToFragment = function( fragment ) {
|
|||
* something, replacing any preexisting message.
|
||||
*
|
||||
* @deprecated since 1.17 Use the 'mediawiki.notify' module instead.
|
||||
* @param {String|HTMLElement} message To be put inside the message box.
|
||||
* @param {string|HTMLElement} message To be put inside the message box.
|
||||
*/
|
||||
window.jsMsg = function () {
|
||||
return mw.util.jsMessage.apply( mw.util, arguments );
|
||||
};
|
||||
mw.log.deprecate( window, 'jsMsg', mw.util.jsMessage, 'Use mediawiki.notify instead.' );
|
||||
|
||||
/**
|
||||
* Inject a cute little progress spinner after the specified element
|
||||
|
|
|
|||
Loading…
Reference in a new issue