duanjingyu007 / jquery-i18n-properties

Automatically exported from code.google.com/p/jquery-i18n-properties
0 stars 0 forks source link

Typo found in i18n.prop method #32

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a properties file with a simple key,value (not complex)
2. Get the property value
3. The value is returned as a string and not an array

What is the expected output? What do you see instead?
Value of the specified key should be returned as an array

What version of the product are you using? On what operating system?
1.0.9

Please provide any additional information below.
Easily fixed by changing the following code in $.i18n.prop:
if (value.lengh == 1 && typeof(value[0]) == "string")
        return value[0];

TO:
if (value.length == 1 && typeof(value[0]) == "string")
        return value[0];

Original issue reported on code.google.com by shefali....@gmail.com on 17 Sep 2013 at 11:19