diff --git a/r2/r2/public/static/comments.js b/r2/r2/public/static/comments.js index 51fdf2e40..8441975ad 100644 --- a/r2/r2/public/static/comments.js +++ b/r2/r2/public/static/comments.js @@ -101,6 +101,9 @@ Comment.comment = function(r) { vl[id] = r.vl; }; +// Commenting on a link is handled by the Comment API so defer to it +Link.comment = Comment.comment; + Comment.morechildren = function(r) { var c = new Thing(r.id); if(c.row) c.del(); diff --git a/r2/r2/public/static/link.js b/r2/r2/public/static/link.js index c6b2e300d..21a68a6b0 100644 --- a/r2/r2/public/static/link.js +++ b/r2/r2/public/static/link.js @@ -455,9 +455,6 @@ Link.prototype.share = function() { share.attach(this.$("child")); }; -// Commenting on a link is handled by the Comment API so defer to it -Link.comment = Comment.comment; - function linkstatus(form) { var title = field(form.title); if(title) {