From e196360f8c9b22497588ad56db8e213f2985cf51 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 14 Aug 2019 00:01:40 +0000 Subject: [PATCH] Coding Standards: Fix JSHint error in [45790]. See #41545. git-svn-id: https://develop.svn.wordpress.org/trunk@45792 602fd350-edb4-49c9-b593-d223f7449a82 --- src/js/_enqueues/lib/comment-reply.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/js/_enqueues/lib/comment-reply.js b/src/js/_enqueues/lib/comment-reply.js index be54c350d3..723b532073 100644 --- a/src/js/_enqueues/lib/comment-reply.js +++ b/src/js/_enqueues/lib/comment-reply.js @@ -104,7 +104,8 @@ window.addComment = ( function( window ) { commentFormElement.submit.click(); return false; } - } + }; + commentFormElement.addEventListener( 'keydown', submitFormHandler ); var links = replyLinks( context ); @@ -321,7 +322,7 @@ window.addComment = ( function( window ) { * This is for backward compatibility with third party commenting systems * hooking into the event using older techniques. */ - cancelElement.onclick = function(){ + cancelElement.onclick = function() { return false; };