diff --git a/src/jquery.uls.lcd.js b/src/jquery.uls.lcd.js index 39a6402..7b54213 100644 --- a/src/jquery.uls.lcd.js +++ b/src/jquery.uls.lcd.js @@ -98,7 +98,9 @@ } for ( i = 0; i < regions.length; i++ ) { - this.regionLanguages[ regions[ i ] ].push( langCode ); + if ( this.regionLanguages[ regions[ i ] ] ) { + this.regionLanguages[ regions[ i ] ].push( langCode ); + } } // Work around the bad interface, delay rendering until we have got