From d16c615bb2920af5a00ce35ec20aa5d19136b38e Mon Sep 17 00:00:00 2001 From: Krinkle Date: Wed, 18 Jun 2014 01:25:39 +0000 Subject: [PATCH] Revert "Media search dialog: Only try to abort request if possible" Per bug 59604. The TypeError isn't coming from calling ".abort". That method is always there and part of every jqXHR object, always. This reverts commit c5dbc13c65f388f362d453f51011e33b008eadc5. Change-Id: I43bb53d8c98ca83688020c029d9a3db2c34d54ee --- modules/ve-mw/ui/widgets/ve.ui.MWMediaSearchWidget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) {