// Check for incomplete animations/requests/etc and throw if there are any.
if ( $.timers && $.timers.length !== 0 ) {
timers = $.timers.length;
+ // eslint-disable-next-line no-restricted-properties
$.each( $.timers, function ( i, timer ) {
var node = timer.elem;
mw.log.warn( 'Unfinished animation #' + i + ' in ' + timer.queue + ' queue on ' +
QUnit.whenPromisesComplete = function () {
var altPromises = [];
+ // When we have ES6 support we'll be able to use Array.from here
+ // eslint-disable-next-line no-restricted-properties
$.each( arguments, function ( i, arg ) {
var alt = $.Deferred();
altPromises.push( alt );