Merge "[FileBackend] Clear swift connection on invalid HTTP responses."
[lhc/web/wiklou.git] / resources / mediawiki / mediawiki.notify.js
1 /**
2 * Implements mediaWiki.notify function
3 */
4 ( function ( mw ) {
5 'use strict';
6
7 /**
8 * @see mw.notification.notify
9 */
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 );
17 } );
18 };
19
20 }( mediaWiki ) );