From 1d5471c3181544d565721b300635e968082a2b5f Mon Sep 17 00:00:00 2001 From: lilia Date: Thu, 1 Sep 2016 14:01:51 -0700 Subject: [PATCH] Fix search tests // FREEBIE --- js/emoji_util.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/emoji_util.js b/js/emoji_util.js index 2d0cb1b8..50702bc2 100644 --- a/js/emoji_util.js +++ b/js/emoji_util.js @@ -43,6 +43,9 @@ emoji.init_colons(); window.emoji_util.parse = function($el) { + if (!$el || !$el.length) { + return; + } $el.html(emoji.replace_unified($el.html())); };