}
toRemove = {};
+ // eslint-disable-next-line no-restricted-properties
$.each( this.templatedItemsCache, function ( k, el ) {
if ( el.widget.isElementAttached() ) {
toRemove[ k ] = el;
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(