Merge "Fix docs in ve.ui.MWParameterSearchWidget.js"

This commit is contained in:
jenkins-bot 2014-04-24 01:17:15 +00:00 committed by Gerrit Code Review
commit 3050b22ea2

View file

@ -12,6 +12,7 @@
* @extends OO.ui.SearchWidget
*
* @constructor
* @param {ve.dm.MWTemplateModel} template Template model
* @param {Object} [config] Configuration options
* @cfg {number|null} [limit=3] Limit on the number of initial options to show, null to show all
*/
@ -173,7 +174,7 @@ ve.ui.MWParameterSearchWidget.prototype.addResults = function () {
}
this.results.addItems( items );
if ( query.length ) {
if ( hasQuery ) {
this.results.highlightItem( this.results.getFirstSelectableItem() );
}
};