Fix two js error possibilities

Change-Id: I92ed487e7b5c70ef7851575eec676276e1ea905b
This commit is contained in:
Santhosh Thottingal
2013-06-10 14:33:17 +05:30
parent f3a5321b72
commit 05e34d5dfa
2 changed files with 5 additions and 1 deletions

View File

@@ -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 );