diff --git a/resources/dist/index.js b/resources/dist/index.js index b2bc8e54c..f1f4c0e81 100644 Binary files a/resources/dist/index.js and b/resources/dist/index.js differ diff --git a/resources/dist/index.js.map b/resources/dist/index.js.map index 6b9a2b8b2..bf4ee51b3 100644 Binary files a/resources/dist/index.js.map and b/resources/dist/index.js.map differ diff --git a/src/changeListeners/eventLogging.js b/src/changeListeners/eventLogging.js index a48a85d73..8f19d970a 100644 --- a/src/changeListeners/eventLogging.js +++ b/src/changeListeners/eventLogging.js @@ -1,28 +1,26 @@ -( function ( $ ) { +var $ = jQuery; - /** - * Creates an instance of the event logging change listener. - * - * When an event is enqueued to be logged it'll be logged using the schema. - * Since it's the responsibility of EventLogging (and the UA) to deliver - * logged events, the `EVENT_LOGGED` is immediately dispatched rather than - * waiting for some indicator of completion. - * - * @param {Object} boundActions - * @param {mw.eventLog.Schema} schema - * @return {ext.popups.ChangeListener} - */ - module.exports = function ( boundActions, schema ) { - return function ( _, state ) { - var eventLogging = state.eventLogging, - event = eventLogging.event; +/** + * Creates an instance of the event logging change listener. + * + * When an event is enqueued to be logged it'll be logged using the schema. + * Since it's the responsibility of EventLogging (and the UA) to deliver + * logged events, the `EVENT_LOGGED` is immediately dispatched rather than + * waiting for some indicator of completion. + * + * @param {Object} boundActions + * @param {mw.eventLog.Schema} schema + * @return {ext.popups.ChangeListener} + */ +module.exports = function ( boundActions, schema ) { + return function ( _, state ) { + var eventLogging = state.eventLogging, + event = eventLogging.event; - if ( event ) { - schema.log( $.extend( true, {}, eventLogging.baseData, event ) ); + if ( event ) { + schema.log( $.extend( true, {}, eventLogging.baseData, event ) ); - boundActions.eventLogged(); - } - }; + boundActions.eventLogged(); + } }; - -}( jQuery ) ); +};