* @class mw.Api.plugin.upload
* @singleton
*/
-( function ( mw, $ ) {
+( function () {
var nonce = 0,
fieldsAllowed = {
stash: true,
file.name = 'file';
+ // eslint-disable-next-line no-restricted-properties
$.each( data, function ( key, val ) {
$form.append( getHiddenInput( key, val ) );
} );
* @class mw.Api
* @mixins mw.Api.plugin.upload
*/
-}( mediaWiki, jQuery ) );
+}() );