From a4483a2f5671fd374147854c8f86a5da8dbbc665 Mon Sep 17 00:00:00 2001 From: spez Date: Fri, 7 Nov 2008 11:37:48 -0800 Subject: [PATCH] move comment dependency from link.js --- r2/r2/public/static/comments.js | 3 +++ r2/r2/public/static/link.js | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) 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) {