Bug when content is number 0.
This commit is contained in:
parent
4d3f6fa390
commit
b620f2c0b0
@ -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;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user