From b620f2c0b051dbf2e58d252215358528fee3d3cb Mon Sep 17 00:00:00 2001 From: Ivan Pantic Date: Sat, 16 Jul 2016 03:46:37 +0200 Subject: [PATCH] Bug when content is number 0. --- isso/js/app/dom.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/isso/js/app/dom.js b/isso/js/app/dom.js index 9a50609..ec76e13 100644 --- a/isso/js/app/dom.js +++ b/isso/js/app/dom.js @@ -205,10 +205,13 @@ define(function() { el.href = "#"; } + if (!content && content !== 0) { + content = ""; + } if (["TEXTAREA", "INPUT"].indexOf(el.nodeName) > -1) { - el.value = content || ""; + el.value = content; } else { - el.textContent = content || ""; + el.textContent = content; } return el; };