Merge "Revert "Media search dialog: Only try to abort request if possible""

This commit is contained in:
jenkins-bot 2014-06-18 01:36:17 +00:00 committed by Gerrit Code Review
commit 66834d2e97

View file

@ -129,7 +129,7 @@ ve.ui.MWMediaSearchWidget.prototype.queryMediaSources = function () {
// If we don't have either 'apiurl' or 'scriptDirUrl' // If we don't have either 'apiurl' or 'scriptDirUrl'
// the source is invalid, and we will skip it // the source is invalid, and we will skip it
if ( source.apiurl || source.scriptDirUrl !== undefined ) { if ( source.apiurl || source.scriptDirUrl !== undefined ) {
if ( source.request && source.request.abort ) { if ( source.request ) {
source.request.abort(); source.request.abort();
} }
if ( !source.gsroffset ) { if ( !source.gsroffset ) {