r79226 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r79225‎ | r79226 | r79227 >
Date:02:15, 30 December 2010
Author:neilk
Status:deferred
Tags:
Comment:
fix bug 26494 - IE6 is brain dead, returns unknown as a typeof!
Modified paths:
  • /trunk/extensions/UploadWizard/resources/jquery/jquery.mwCoolCats.js (modified) (history)

Diff [purge]

Index: trunk/extensions/UploadWizard/resources/jquery/jquery.mwCoolCats.js
@@ -23,9 +23,10 @@
2424 'fetch': _fetchSuggestions,
2525 'cancel': function() {
2626 var req = $j( this ).data( 'request' );
27 - if ( req.abort ) {
 27+ // XMLHttpRequest.abort is unimplemented in IE6, also returns nonstandard value of "unknown" for typeof
 28+ if ( req && ( typeof req.abort !== 'unknown' ) && ( typeof req.abort !== 'undefined' ) && req.abort ) {
2829 req.abort();
29 - }
 30+ }
3031 }
3132 } );
3233 _this.suggestions();

Status & tagging log