Fix font preferences saving.

Change-Id: I31ea1092bd5258c4af3973ae8237337133fd5d94
This commit is contained in:
Amir E. Aharoni
2012-08-21 21:14:03 +03:00
parent 1784a85bb4
commit 567cb54a9a

View File

@@ -109,15 +109,14 @@
};
mw.uls = mw.uls || {};
mw.uls.preferences = function( option ) {
var data = $( 'body' ).data( "preferences" ),
options = typeof option === "object" && option;
mw.uls.preferences = function( group ) {
var data = $( 'body' ).data( "preferences" );
if ( !data ) {
$( 'body' ).data( "preferences", ( data = new ULSPreferences( options ) ) );
$( 'body' ).data( "preferences", ( data = new ULSPreferences( group ) ) );
}
if ( typeof option === "string" ) {
data.get( option );
if ( typeof group === "string" ) {
data.get( group );
}
return data;
};