Made secure text fields have the right number of characters when focus is taken away from them. Closes issue #318.

This commit is contained in:
saikat authored and Tom Robinson committed 2009-11-02 00:35:53 -08:00
1 parent 1ceeec8b5b
commit eeae653c94
1 file changed
+2 -1
+2 -1
View File
@@ -978,7 +978,8 @@ var secureStringForString = function(aString)
// This is true for when aString === "" and null/undefined.
if (!aString)
return "";
return Array(aString.length).join(CPSecureTextFieldCharacter);
return Array(aString.length+1).join(CPSecureTextFieldCharacter);
}