WordPress.org

Make WordPress Core

Ticket #26038: 26038.patch

File 26038.patch, 773 bytes (added by mdbitz, 8 years ago)

jshint cleanup of comment-reply.js (global variable, additional semi-colon)

  • src/wp-includes/js/comment-reply.js

     
    1 
     1/* global addComment:true */
    22addComment = {
    33        moveForm : function(commId, parentId, respondId, postId) {
    44                var t = this, div, comm = t.I(commId), respond = t.I(respondId), cancel = t.I('cancel-comment-reply-link'), parent = t.I('comment_parent'), post = t.I('comment_post_ID');
     
    3434                        this.style.display = 'none';
    3535                        this.onclick = null;
    3636                        return false;
    37                 }
     37                };
    3838
    3939                try { t.I('comment').focus(); }
    4040                catch(e) {}
     
    4545        I : function(e) {
    4646                return document.getElementById(e);
    4747        }
    48 }
     48};