Just return nothing for unknown events

pull/1/head
David Baker 2015-07-17 12:23:24 +01:00
parent 00c45e48a9
commit b53640f892
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ var handlers = {
module.exports = { module.exports = {
textForEvent(ev) { textForEvent(ev) {
var hdlr = handlers[ev.getType()]; var hdlr = handlers[ev.getType()];
if (!hdlr) return "Unknown entry event"; if (!hdlr) return "";
return hdlr(ev); return hdlr(ev);
} }
} }