diff --git a/modules/ve-mw/ui/widgets/ve.ui.MWMediaSearchWidget.js b/modules/ve-mw/ui/widgets/ve.ui.MWMediaSearchWidget.js index a047c55ca0..93d0895b06 100755 --- a/modules/ve-mw/ui/widgets/ve.ui.MWMediaSearchWidget.js +++ b/modules/ve-mw/ui/widgets/ve.ui.MWMediaSearchWidget.js @@ -129,7 +129,7 @@ ve.ui.MWMediaSearchWidget.prototype.queryMediaSources = function () { // If we don't have either 'apiurl' or 'scriptDirUrl' // the source is invalid, and we will skip it if ( source.apiurl || source.scriptDirUrl !== undefined ) { - if ( source.request && source.request.abort ) { + if ( source.request ) { source.request.abort(); } if ( !source.gsroffset ) {