3bf2a89634399f4ad4d30f89832397b991e5de28
2 * Implements mediaWiki.notify function
8 * @see mw.notification.notify
10 mw
.notify = function ( message
, options
) {
11 // Don't bother loading the whole notification system if we never use it.
12 mw
.loader
.using( 'mediawiki.notification', function () {
13 // Don't bother calling mw.loader.using a second time after we've already loaded mw.notification.
14 mw
.notify
= mw
.notification
.notify
;
15 // Call notify with the notification the user requested of us.
16 mw
.notify( message
, options
);