Whitespace, typo, jshint fixes
Change-Id: Ib22d9c4a75d1f9ce77a7db2a820dc6de9c680b09
This commit is contained in:
committed by
Amir E. Aharoni
parent
77515dd664
commit
5c6567adbc
@@ -32,7 +32,7 @@
|
||||
|
||||
ULSPreferences.prototype = {
|
||||
/**
|
||||
* Initalize
|
||||
* Initialize
|
||||
*/
|
||||
init: function () {
|
||||
if ( this.isAnon ) {
|
||||
@@ -88,8 +88,8 @@
|
||||
api.post( {
|
||||
action: 'tokens',
|
||||
type: 'options'
|
||||
} ).done( function ( result ) {
|
||||
var token = result.tokens.optionstoken;
|
||||
} ).done( function ( tokenresult ) {
|
||||
var token = tokenresult.tokens.optionstoken;
|
||||
api.post( {
|
||||
action: 'options',
|
||||
change: 'hideminor=1',
|
||||
@@ -117,7 +117,7 @@
|
||||
$( 'body' ).data( "preferences", ( data = new ULSPreferences( options ) ) );
|
||||
}
|
||||
if ( typeof option === "string" ) {
|
||||
data.get(option);
|
||||
data.get( option );
|
||||
}
|
||||
return data;
|
||||
};
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
* @licence GNU General Public Licence 2.0 or later
|
||||
* @licence MIT License
|
||||
*/
|
||||
( function ( $, mw ) {
|
||||
( function ( $, mw, document, undefined ) {
|
||||
"use strict";
|
||||
|
||||
$( document ).ready( function() {
|
||||
@@ -39,4 +39,4 @@
|
||||
}
|
||||
} );
|
||||
} );
|
||||
} )( jQuery, mediaWiki );
|
||||
} )( jQuery, mediaWiki, document );
|
||||
|
||||
Reference in New Issue
Block a user