r100092 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r100091‎ | r100092 | r100093 >
Date:22:35, 17 October 2011
Author:krinkle
Status:ok
Tags:
Comment:
ext.codereview.js: Fix bug 31785
* indexOf prototype does not exist on the Number object. Convert to string before calling indexOf.
* (bug 31785) ext.codereview.js should ensure type string before calling indexOf (Uncaught TypeError)
Modified paths:
  • /trunk/extensions/CodeReview/modules/ext.codereview.js (modified) (history)

Diff [purge]

Index: trunk/extensions/CodeReview/modules/ext.codereview.js
@@ -26,7 +26,7 @@
2727 good = false;
2828 }
2929 }
30 - if( good && tags[i].indexOf( lastTag ) != -1 ){
 30+ if( good && ('' + tags[i]).indexOf( lastTag ) != -1 ){
3131 suggestions.push( doneTags + tags[i] );
3232 }
3333 }

Follow-up revisions

RevisionCommit summaryAuthorDate
r1007601.18wmf1 MFT r100092, r100419, r100686, r100692reedy23:08, 25 October 2011
r100842REL1_18 MFT r98607, r99897, r100092reedy18:56, 26 October 2011

Status & tagging log