From 3f4b1b3d630a1e43a23d59607c9c04ad5affa30c Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 9 Nov 2013 15:39:07 +0000 Subject: [PATCH] textState might be undefined --- static/js/URL.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/URL.js b/static/js/URL.js index 055a229d..f9d86fc9 100644 --- a/static/js/URL.js +++ b/static/js/URL.js @@ -65,7 +65,7 @@ pandora.URL = (function() { : [] ); } 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; if (textState.name) {