textState might be undefined

This commit is contained in:
j 2013-11-09 15:39:07 +00:00
parent bb91922e1a
commit 3f4b1b3d63

View file

@ -65,7 +65,7 @@ pandora.URL = (function() {
: [] : []
); );
} else if (pandora.user.ui.section == 'texts') { } else if (pandora.user.ui.section == 'texts') {
var textState = pandora.user.ui.texts[state.item], var textState = pandora.user.ui.texts[state.item] || {},
position = textState.position || 0; position = textState.position || 0;
if (textState.name) { if (textState.name) {