Merge "Hygiene: Dont quote object property keys"

This commit is contained in:
jenkins-bot 2014-09-12 23:16:06 +00:00 committed by Gerrit Code Review
commit 8635a9cc9f

View file

@ -63,12 +63,12 @@
notifications, data, container, $li, that = this, unread = [], apiData; notifications, data, container, $li, that = this, unread = [], apiData;
apiData = { apiData = {
'action' : 'query', action : 'query',
'meta' : 'notifications', meta : 'notifications',
'notformat' : 'html', notformat : 'html',
'notprop' : 'index|list', notprop : 'index|list',
'notcontinue': this.notcontinue, notcontinue: this.notcontinue,
'notlimit': mw.config.get( 'wgEchoDisplayNum' ), notlimit: mw.config.get( 'wgEchoDisplayNum' ),
uselang: useLang uselang: useLang
}; };
@ -128,9 +128,9 @@
api = new mw.Api(), that = this; api = new mw.Api(), that = this;
api.post( { api.post( {
'action' : 'echomarkread', action : 'echomarkread',
'list' : unread.join( '|' ), list : unread.join( '|' ),
'token': mw.user.tokens.get( 'editToken' ), token: mw.user.tokens.get( 'editToken' ),
uselang: useLang uselang: useLang
} ).done( function ( result ) { } ).done( function ( result ) {
// update the badge if the link is enabled // update the badge if the link is enabled