Use single entry point mw.uls.init for all ULS ui initialization

Change-Id: I485ea27deebb530eb89e4b0935eda01a5276f884
This commit is contained in:
Santhosh Thottingal
2013-07-04 18:27:32 +05:30
committed by Amire80
parent ea50b8216c
commit 8ddff0b2fc
4 changed files with 37 additions and 30 deletions

View File

@@ -203,17 +203,14 @@
};
$( document ).ready( function () {
if ( !mw.uls.isBrowserSupported() ) {
return;
}
// Load the ime preferences
$.ime.preferences.load();
if ( $.ime.preferences.isEnabled() ) {
mw.ime.setup();
}
mw.uls.init( function () {
// Load the ime preferences
$.ime.preferences.load();
if ( $.ime.preferences.isEnabled() ) {
mw.ime.setup();
}
} );
} );
function imeNotification () {