Permalink
Browse files

if no val, empty string, not undefined

  • Loading branch information...
1 parent cbb1382 commit c16cbc7beb0d6cc4ae908bde9394dd4939864412 @matthewmueller committed Dec 12, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 index.js
View
@@ -82,6 +82,7 @@ function json_to_dom(el, val, key, obj) {
*/
function set(node, attr, val) {
+ val = val || '';
switch(attr) {
case 'innerHTML':
case 'innerText':

0 comments on commit c16cbc7

Please sign in to comment.