RawAction: private variable removing m prefix + doc better
[mediawiki.git] / resources / src / mediawiki / mediawiki.notify.js
blobc1e1dabfc77569c3b5575c6222a431710b01b391
1 /**
2 * @class mw.plugin.notify
3 */
4 ( function ( mw ) {
5 'use strict';
7 /**
8 * @see mw.notification#notify
9 * @param message
10 * @param options
11 * @return {jQuery.Promise}
13 mw.notify = function ( message, options ) {
14 // Don't bother loading the whole notification system if we never use it.
15 return mw.loader.using( 'mediawiki.notification' )
16 .then( function () {
17 // Call notify with the notification the user requested of us.
18 return mw.notification.notify( message, options );
19 } );
22 /**
23 * @class mw
24 * @mixins mw.plugin.notify
27 }( mediaWiki ) );