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 = {
|
ULSPreferences.prototype = {
|
||||||
/**
|
/**
|
||||||
* Initalize
|
* Initialize
|
||||||
*/
|
*/
|
||||||
init: function () {
|
init: function () {
|
||||||
if ( this.isAnon ) {
|
if ( this.isAnon ) {
|
||||||
@@ -88,8 +88,8 @@
|
|||||||
api.post( {
|
api.post( {
|
||||||
action: 'tokens',
|
action: 'tokens',
|
||||||
type: 'options'
|
type: 'options'
|
||||||
} ).done( function ( result ) {
|
} ).done( function ( tokenresult ) {
|
||||||
var token = result.tokens.optionstoken;
|
var token = tokenresult.tokens.optionstoken;
|
||||||
api.post( {
|
api.post( {
|
||||||
action: 'options',
|
action: 'options',
|
||||||
change: 'hideminor=1',
|
change: 'hideminor=1',
|
||||||
@@ -117,7 +117,7 @@
|
|||||||
$( 'body' ).data( "preferences", ( data = new ULSPreferences( options ) ) );
|
$( 'body' ).data( "preferences", ( data = new ULSPreferences( options ) ) );
|
||||||
}
|
}
|
||||||
if ( typeof option === "string" ) {
|
if ( typeof option === "string" ) {
|
||||||
data.get(option);
|
data.get( option );
|
||||||
}
|
}
|
||||||
return data;
|
return data;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
* @licence GNU General Public Licence 2.0 or later
|
* @licence GNU General Public Licence 2.0 or later
|
||||||
* @licence MIT License
|
* @licence MIT License
|
||||||
*/
|
*/
|
||||||
( function ( $, mw ) {
|
( function ( $, mw, document, undefined ) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
$( document ).ready( function() {
|
$( document ).ready( function() {
|
||||||
@@ -39,4 +39,4 @@
|
|||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
} )( jQuery, mediaWiki );
|
} )( jQuery, mediaWiki, document );
|
||||||
|
|||||||
Reference in New Issue
Block a user