Skip to content
Permalink
Browse files

fix(js): check if trigger is set before validation if part of comments

  • Loading branch information
jdalsem committed Feb 18, 2019
1 parent 63133ea commit 9fdd66d7f427608d0194aa22e60e42f21c8c63c0
Showing with 1 addition and 1 deletion.
  1. +1 −1 views/default/elgg/comments.js
@@ -85,7 +85,7 @@ define(['jquery', 'elgg'], function ($, elgg) {

$(document).on('click', '.elgg-menu-item-edit > a', function () {
var $trigger = $(this).closest('.elgg-menu-hover').data('trigger');
if (!$trigger.is('.elgg-item-object-comment a')) {
if ((typeof $trigger === 'undefined') || !$trigger.is('.elgg-item-object-comment a')) {
return;
}

0 comments on commit 9fdd66d

Please sign in to comment.
You can’t perform that action at this time.