Documentation for mw.uls.init
Bug: 50858 Change-Id: Iada465a8228955bf24f7a4628bf2288b3fe0c0ac
This commit is contained in:
@@ -217,17 +217,22 @@
|
||||
} ).fail( function ( jqxhr, settings, exception ) {
|
||||
mw.log( 'Error in loading messages from ' + url + ' Exception: ' + exception );
|
||||
} );
|
||||
return deferred.promise();
|
||||
return deferred.promise();
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Initialize ULS front-end and its i18n.
|
||||
*
|
||||
* @param {Function} callback callback function to be called after initialization.
|
||||
*/
|
||||
mw.uls.init = function ( callback ) {
|
||||
var messageStore = new MWMessageStore();
|
||||
|
||||
callback = callback || $.noop;
|
||||
|
||||
if ( initialized ) {
|
||||
callback.call( this, false );
|
||||
callback.call( this );
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user