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.special.apisandbox
/
apisandbox.js
diff --git
a/resources/src/mediawiki.special.apisandbox/apisandbox.js
b/resources/src/mediawiki.special.apisandbox/apisandbox.js
index
52abb30
..
48b3269
100644
(file)
--- a/
resources/src/mediawiki.special.apisandbox/apisandbox.js
+++ b/
resources/src/mediawiki.special.apisandbox/apisandbox.js
@@
-1,5
+1,5
@@
/* eslint-disable no-restricted-properties */
/* eslint-disable no-restricted-properties */
-( function (
$, mw, OO
) {
+( function () {
'use strict';
var ApiSandbox, Util, WidgetMethods, Validators,
$content, panel, booklet, oldhash, windowManager,
'use strict';
var ApiSandbox, Util, WidgetMethods, Validators,
$content, panel, booklet, oldhash, windowManager,
@@
-1597,6
+1597,7
@@
}
toRemove = {};
}
toRemove = {};
+ // eslint-disable-next-line no-restricted-properties
$.each( this.templatedItemsCache, function ( k, el ) {
if ( el.widget.isElementAttached() ) {
toRemove[ k ] = el;
$.each( this.templatedItemsCache, function ( k, el ) {
if ( el.widget.isElementAttached() ) {
toRemove[ k ] = el;
@@
-1996,7
+1997,7
@@
return widget.apiCheckValid();
} );
$.when.apply( $, promises ).then( function () {
return widget.apiCheckValid();
} );
$.when.apply( $, promises ).then( function () {
- that.apiIsValid =
$.inArray( false, arguments
) === -1;
+ that.apiIsValid =
Array.prototype.indexOf.call( arguments, false
) === -1;
if ( that.getOutlineItem() ) {
that.getOutlineItem().setIcon( that.apiIsValid || suppressErrors ? null : 'alert' );
that.getOutlineItem().setIconTitle(
if ( that.getOutlineItem() ) {
that.getOutlineItem().setIcon( that.apiIsValid || suppressErrors ? null : 'alert' );
that.getOutlineItem().setIconTitle(
@@
-2071,4
+2072,4
@@
module.exports = ApiSandbox;
module.exports = ApiSandbox;
-}(
jQuery, mediaWiki, OO
) );
+}() );