Fix two js error possibilities
Change-Id: I92ed487e7b5c70ef7851575eec676276e1ea905b
This commit is contained in:
@@ -243,6 +243,10 @@
|
||||
this.selectedLanguage = langCode;
|
||||
languageName = languageName || this.options.languages[langCode];
|
||||
|
||||
if ( !languageName ) {
|
||||
return;
|
||||
}
|
||||
|
||||
var autonym,
|
||||
userInput = this.$element.val(),
|
||||
suggestion = userInput + languageName.substring( userInput.length, languageName.length );
|
||||
|
||||
@@ -205,7 +205,7 @@
|
||||
}
|
||||
|
||||
if ( !this.options.quickList ) {
|
||||
return;
|
||||
return $( [] );
|
||||
}
|
||||
|
||||
// Pick only the first elements, because we don't have room for more
|
||||
|
||||
Reference in New Issue
Block a user