Bug when content is number 0.

This commit is contained in:
Ivan Pantic 2016-07-16 03:46:37 +02:00
parent 4d3f6fa390
commit b620f2c0b0

View File

@ -205,10 +205,13 @@ define(function() {
el.href = "#"; el.href = "#";
} }
if (!content && content !== 0) {
content = "";
}
if (["TEXTAREA", "INPUT"].indexOf(el.nodeName) > -1) { if (["TEXTAREA", "INPUT"].indexOf(el.nodeName) > -1) {
el.value = content || ""; el.value = content;
} else { } else {
el.textContent = content || ""; el.textContent = content;
} }
return el; return el;
}; };