r92190 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r92189‎ | r92190 | r92191 >
Date:20:30, 14 July 2011
Author:krinkle
Status:ok
Tags:
Comment:
Fix typo from r90186. It's not inArray but isArray, which obviously does return a boolean value
Modified paths:
  • /trunk/extensions/Vector/modules/ext.vector.simpleSearch.js (modified) (history)

Diff [purge]

Index: trunk/extensions/Vector/modules/ext.vector.simpleSearch.js
@@ -54,7 +54,7 @@
5555 },
5656 dataType: 'json',
5757 success: function( data ) {
58 - if ( $.isArray( data ) !== -1 && 1 in data ) {
 58+ if ( $.isArray( data ) && 1 in data ) {
5959 $this.suggestions( 'suggestions', data[1] );
6060 }
6161 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r90186Minor fixed in ext.vector.simpleSearch...krinkle23:21, 15 June 2011

Status & tagging log