From 0145529035bf5636d7a22ee5ae2000ccab9f896e Mon Sep 17 00:00:00 2001 From: Santhosh Thottingal Date: Sun, 7 Jul 2013 17:25:58 +0530 Subject: [PATCH] Documentation for mw.uls.init Bug: 50858 Change-Id: Iada465a8228955bf24f7a4628bf2288b3fe0c0ac --- resources/js/ext.uls.init.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/resources/js/ext.uls.init.js b/resources/js/ext.uls.init.js index dc542a3e..42c76bd2 100644 --- a/resources/js/ext.uls.init.js +++ b/resources/js/ext.uls.init.js @@ -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; }