Documentation for mw.uls.init
Bug: 50858 Change-Id: Iada465a8228955bf24f7a4628bf2288b3fe0c0ac
This commit is contained in:
@@ -221,13 +221,18 @@
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Initialize ULS front-end and its i18n.
|
||||||
|
*
|
||||||
|
* @param {Function} callback callback function to be called after initialization.
|
||||||
|
*/
|
||||||
mw.uls.init = function ( callback ) {
|
mw.uls.init = function ( callback ) {
|
||||||
var messageStore = new MWMessageStore();
|
var messageStore = new MWMessageStore();
|
||||||
|
|
||||||
callback = callback || $.noop;
|
callback = callback || $.noop;
|
||||||
|
|
||||||
if ( initialized ) {
|
if ( initialized ) {
|
||||||
callback.call( this, false );
|
callback.call( this );
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user