From 5d63747fb36884929ba1245ca84b34266cd23392 Mon Sep 17 00:00:00 2001 From: frankiefu Date: Wed, 9 Oct 2013 16:36:36 -0700 Subject: [PATCH] don't add empty string name to publish block; fixes #313 --- src/declaration/attributes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/declaration/attributes.js b/src/declaration/attributes.js index 8fceaec705..33bfdf7907 100644 --- a/src/declaration/attributes.js +++ b/src/declaration/attributes.js @@ -31,7 +31,7 @@ // remove excess ws n = names[i].trim(); // do not override explicit entries - if (publish[n] === undefined && base[n] === undefined) { + if (n && publish[n] === undefined && base[n] === undefined) { publish[n] = null; } }