mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror
synced 2024-11-30 17:04:14 +00:00
Clean-up: inline array merge
Change-Id: Ie976bf70f4117db09b53e6192f983930c7e6a458
This commit is contained in:
parent
37b851824d
commit
81bd2fe546
|
@ -179,11 +179,10 @@
|
|||
var event, editCountBucket;
|
||||
|
||||
/* eslint-disable camelcase */
|
||||
event = {
|
||||
event = $.extend( {
|
||||
session_token: mw.user.sessionId(),
|
||||
user_id: mw.user.getId()
|
||||
};
|
||||
$.extend( event, data );
|
||||
}, data );
|
||||
editCountBucket = mw.config.get( 'wgUserEditCountBucket' );
|
||||
if ( editCountBucket !== null ) {
|
||||
event.user_edit_count_bucket = editCountBucket;
|
||||
|
|
|
@ -35,11 +35,10 @@ ve.ui.CodeMirrorTool.prototype.logUsage = function ( data ) {
|
|||
var event, editCountBucket;
|
||||
|
||||
/* eslint-disable camelcase */
|
||||
event = {
|
||||
event = $.extend( {
|
||||
session_token: mw.user.sessionId(),
|
||||
user_id: mw.user.getId()
|
||||
};
|
||||
$.extend( event, data );
|
||||
}, data );
|
||||
editCountBucket = mw.config.get( 'wgUserEditCountBucket' );
|
||||
if ( editCountBucket !== null ) {
|
||||
event.user_edit_count_bucket = editCountBucket;
|
||||
|
|
Loading…
Reference in a new issue