Skip to content

Commit

Permalink
Don't send empty message
Browse files Browse the repository at this point in the history
  • Loading branch information
M1cRO committed Mar 1, 2012
1 parent cd87404 commit 3db9ec7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/chat/index.jade
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ html
});

function message (from, msg) {
$('#lines').append($('<p>').append($('<b>').text(from), msg));
if (msg) {
$('#lines').append($('<p>').append($('<b>').text(from), msg));
}
}

// dom manipulation
Expand Down

0 comments on commit 3db9ec7

Please sign in to comment.