Target text could also be a number, treat it the same as string

This commit is contained in:
Nathan Gray 2011-09-15 17:51:21 +00:00
parent a5e17d5193
commit 0b41f9da89

View File

@ -647,7 +647,7 @@ function et2_insertLinkText(_text, _node, _target)
{
var s = _text[i];
if (typeof s == "string")
if (typeof s == "string" || typeof s == "number")
{
_node.appendChild(document.createTextNode(s));
}