Use spaces inside of brackets in JavaScript
* For consistency * For MediaWiki coding conventions Change-Id: I625a8ce0119b1490073f048e1b8ad4e90762d6e2
This commit is contained in:
committed by
[[mw:User:Fomafix]]
parent
63bc85649a
commit
c329f1473d
@@ -61,7 +61,7 @@
|
||||
if ( !data ) {
|
||||
// Try to restore the old preferences, if any, if possible.
|
||||
try {
|
||||
data = JSON.parse( localStorage.getItem( 'jStorage' ) )['uls-preferences'];
|
||||
data = JSON.parse( localStorage.getItem( 'jStorage' ) )[ 'uls-preferences' ];
|
||||
// And try to remove it.
|
||||
localStorage.removeItem( 'jStorage' );
|
||||
} catch ( e ) {
|
||||
@@ -122,7 +122,7 @@
|
||||
* @param value
|
||||
*/
|
||||
set: function ( key, value ) {
|
||||
this.preferences[key] = value;
|
||||
this.preferences[ key ] = value;
|
||||
},
|
||||
|
||||
/**
|
||||
@@ -131,7 +131,7 @@
|
||||
* @param key
|
||||
*/
|
||||
get: function ( key ) {
|
||||
return this.preferences[key];
|
||||
return this.preferences[ key ];
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user