[Pkg-javascript-commits] [ltx] 191/469: Fixed an issue with elements with properties who's value is 0 not rendering the property

Jonas Smedegaard dr at jones.dk
Wed Aug 31 13:02:14 UTC 2016


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository ltx.

commit b76ca13269d99eb5d08977f98061c1466c9075c8
Author: Will Fife <sarlalian at gmail.com>
Date:   Wed Dec 14 17:35:38 2011 -0800

    Fixed an issue with elements with properties who's value is 0 not rendering the property
---
 lib/element.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/element.js b/lib/element.js
index 075fe06..c1080c8 100644
--- a/lib/element.js
+++ b/lib/element.js
@@ -199,7 +199,7 @@ Element.prototype.write = function(writer) {
     writer(this.name);
     for(var k in this.attrs) {
         var v = this.attrs[k];
-	if (v || v === '') {
+	if (v || v === '' || v === 0) {
 	    writer(" ");
             writer(k);
             writer("=\"");

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/ltx.git



More information about the Pkg-javascript-commits mailing list