Your IP : 108.162.216.193


Current Path : /var/www/element/data/www/wiki.element.ru/resources/mediawiki/
Upload File :
Current File : /var/www/element/data/www/wiki.element.ru/resources/mediawiki/mediawiki.notify.js

/**
 * @class mw.plugin.notify
 */
( function ( mw ) {
	'use strict';

	/**
	 * @see mw.notification#notify
	 * @param message
	 * @param options
	 */
	mw.notify = function ( message, options ) {
		// Don't bother loading the whole notification system if we never use it.
		mw.loader.using( 'mediawiki.notification', function () {
			// Don't bother calling mw.loader.using a second time after we've already loaded mw.notification.
			mw.notify = mw.notification.notify;
			// Call notify with the notification the user requested of us.
			mw.notify( message, options );
		} );
	};

	/**
	 * @class mw
	 * @mixins mw.plugin.notify
	 */

}( mediaWiki ) );