Fix font preferences saving.
Change-Id: I31ea1092bd5258c4af3973ae8237337133fd5d94
This commit is contained in:
@@ -109,15 +109,14 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
mw.uls = mw.uls || {};
|
mw.uls = mw.uls || {};
|
||||||
mw.uls.preferences = function( option ) {
|
mw.uls.preferences = function( group ) {
|
||||||
var data = $( 'body' ).data( "preferences" ),
|
var data = $( 'body' ).data( "preferences" );
|
||||||
options = typeof option === "object" && option;
|
|
||||||
|
|
||||||
if ( !data ) {
|
if ( !data ) {
|
||||||
$( 'body' ).data( "preferences", ( data = new ULSPreferences( options ) ) );
|
$( 'body' ).data( "preferences", ( data = new ULSPreferences( group ) ) );
|
||||||
}
|
}
|
||||||
if ( typeof option === "string" ) {
|
if ( typeof group === "string" ) {
|
||||||
data.get( option );
|
data.get( group );
|
||||||
}
|
}
|
||||||
return data;
|
return data;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user