2 * @class mw.plugin.notify
8 * @see mw.notification#notify
9 * @see mw.notification#defaults
10 * @param {HTMLElement|HTMLElement[]|jQuery|mw.Message|string} message
11 * @param {Object} options See mw.notification#defaults for details.
12 * @return {jQuery.Promise}
14 mw.notify = function ( message, options ) {
15 // Don't bother loading the whole notification system if we never use it.
16 return mw.loader.using( 'mediawiki.notification' )
18 // Call notify with the notification the user requested of us.
19 return mw.notification.notify( message, options );
25 * @mixins mw.plugin.notify