Use require to clarify ext.uls.preferences
ext.uls.preferences only depended on ext.uls.common because of its use of the uls global. This is unnecessary, and made clearer by using require and module.exports to access it. Change-Id: Ied2a1b560d19a18529fd766ced778c912199fa2f
This commit is contained in:
@@ -145,8 +145,7 @@
|
||||
}
|
||||
};
|
||||
|
||||
mw.uls = mw.uls || {};
|
||||
mw.uls.preferences = function () {
|
||||
module.exports = function () {
|
||||
var data = $( document.body ).data( 'preferences' );
|
||||
|
||||
if ( !data ) {
|
||||
|
||||
Reference in New Issue
Block a user