dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "resources: Strip '$' and 'mw' from file closures"
[lhc/web/wiklou.git]
/
resources
/
src
/
mediawiki.api
/
upload.js
diff --git
a/resources/src/mediawiki.api/upload.js
b/resources/src/mediawiki.api/upload.js
index
29bd59a
..
1785ab3
100644
(file)
--- a/
resources/src/mediawiki.api/upload.js
+++ b/
resources/src/mediawiki.api/upload.js
@@
-4,7
+4,7
@@
* @class mw.Api.plugin.upload
* @singleton
*/
* @class mw.Api.plugin.upload
* @singleton
*/
-( function (
mw, $
) {
+( function () {
var nonce = 0,
fieldsAllowed = {
stash: true,
var nonce = 0,
fieldsAllowed = {
stash: true,
@@
-40,9
+40,7
@@
function getFirstKey( obj ) {
var key;
for ( key in obj ) {
function getFirstKey( obj ) {
var key;
for ( key in obj ) {
- if ( obj.hasOwnProperty( key ) ) {
- return key;
- }
+ return key;
}
}
}
}
@@
-235,6
+233,7
@@
file.name = 'file';
file.name = 'file';
+ // eslint-disable-next-line no-restricted-properties
$.each( data, function ( key, val ) {
$form.append( getHiddenInput( key, val ) );
} );
$.each( data, function ( key, val ) {
$form.append( getHiddenInput( key, val ) );
} );
@@
-665,4
+664,4
@@
* @class mw.Api
* @mixins mw.Api.plugin.upload
*/
* @class mw.Api
* @mixins mw.Api.plugin.upload
*/
-}(
mediaWiki, jQuery
) );
+}() );