use pandora.UI.encode, fix span parsing for texts

This commit is contained in:
j 2013-09-08 17:31:15 +00:00
commit dcf0893ea1
4 changed files with 7 additions and 7 deletions

View file

@ -174,7 +174,7 @@ pandora.UI = (function() {
if (args.text) {
add['texts.' + that.encode(args.text)] = Ox.map(textSettings, function(value, key) {
var textsKey = 'texts.' + that.encode(args.text) + '.' + key;
return textsKey in args ? args[editextsKeytsKey]
return textsKey in args ? args[textsKey]
: pandora.user.ui.texts[args.text] ? pandora.user.ui.texts[args.text][key]
: value;
});