wikibits: Wrap jsMsg in mw.log.deprecate
authorTimo Tijhof <krinklemail@gmail.com>
Mon, 22 Apr 2013 13:24:39 +0000 (15:24 +0200)
committerTimo Tijhof <krinklemail@gmail.com>
Tue, 28 May 2013 23:19:25 +0000 (00:19 +0100)
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

resources/mediawiki/mediawiki.util.js
skins/common/wikibits.js

index 481929d..977929d 100644 (file)
                 *
                 * @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 ) {
index 1a9aabc..93bf1ad 100644 (file)
@@ -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