Coding Standards: Fix JSHint error in [45790].

See #41545.

git-svn-id: https://develop.svn.wordpress.org/trunk@45792 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2019-08-14 00:01:40 +00:00
parent ee1159c4fe
commit e196360f8c
1 changed files with 3 additions and 2 deletions

View File

@ -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;
};