diff --git a/chrome/content/zotero/bindings/itembox.xml b/chrome/content/zotero/bindings/itembox.xml index 21c3b95ff1..af35fed315 100644 --- a/chrome/content/zotero/bindings/itembox.xml +++ b/chrome/content/zotero/bindings/itembox.xml @@ -1089,10 +1089,7 @@ valueElement.setAttribute('flex', '1'); } - var firstSpace; - if (typeof valueText == 'string') { - firstSpace = valueText.indexOf(" "); - } + var firstSpace = valueText.indexOf(" "); // To support newlines in 'extra' fields, we use multiple // elements inside a vbox